TextureFlags
public struct TextureFlags : OptionSet
Flags to pass to the cogl_texture_new_* family of functions.
-
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
CoglTextureFlags
enum valueDeclaration
Swift
@inlinable public var value: CoglTextureFlags { 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
CoglTextureFlags
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: CoglTextureFlags)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
No flags specified
Declaration
Swift
public static let none: TextureFlags
-
Disables the automatic generation of the mipmap pyramid from the base level image whenever it is updated. The mipmaps are only generated when the texture is rendered with a mipmap filter so it should be free to leave out this flag when using other filtering modes
Declaration
Swift
public static let noAutoMipmap: TextureFlags
-
Disables the slicing of the texture
Declaration
Swift
public static let noSlicing: TextureFlags
-
Disables the insertion of the texture inside the texture atlas used by Cogl
Declaration
Swift
public static let noAtlas: TextureFlags