ColorMask
public struct ColorMask : OptionSet
Defines a bit mask of color channels. This can be used with
cogl_pipeline_set_color_mask()
for example to define which color
channels should be written to the current framebuffer when
drawing something.
-
The corresponding value of the raw type
Declaration
Swift
public var rawValue: UInt32
-
The equivalent raw Int value
Declaration
Swift
@inlinable public var intValue: Int { get set }
-
The equivalent raw
gint
valueDeclaration
Swift
@inlinable public var int: gint { get set }
-
The equivalent underlying
CoglColorMask
enum valueDeclaration
Swift
@inlinable public var value: CoglColorMask { get set }
-
Creates a new instance with the specified raw value
Declaration
Swift
@inlinable public init(rawValue: UInt32)
-
Creates a new instance with the specified
CoglColorMask
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: CoglColorMask)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
None of the color channels are masked
Declaration
Swift
public static let none: ColorMask
-
Masks the red color channel
Declaration
Swift
public static let red: ColorMask
-
Masks the green color channel
Declaration
Swift
public static let green: ColorMask
-
Masks the blue color channel
Declaration
Swift
public static let blue: ColorMask
-
Masks the alpha color channel
Declaration
Swift
public static let alpha: ColorMask
-
All of the color channels are masked
Declaration
Swift
public static let all: ColorMask