Class GLTextureBuilder
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class GLTextureBuilder : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
GLTextureBuilder
- Implements
- Inherited Members
Constructors
GLTextureBuilder(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public GLTextureBuilder(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GLTextureBuilder(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GLTextureBuilder(CreationData data)
Parameters
dataCreationData
GLTextureBuilder(GLTextureBuilderHandle)
protected GLTextureBuilder(GLTextureBuilderHandle handle)
Parameters
handleGLTextureBuilderHandle
Fields
ColorStatePropertyDefinition
public static readonly Property<ColorState, GLTextureBuilder> ColorStatePropertyDefinition
Field Value
ContextPropertyDefinition
public static readonly Property<GLContext?, GLTextureBuilder> ContextPropertyDefinition
Field Value
FormatPropertyDefinition
public static readonly Property<MemoryFormat, GLTextureBuilder> FormatPropertyDefinition
Field Value
HasMipmapPropertyDefinition
public static readonly Property<bool, GLTextureBuilder> HasMipmapPropertyDefinition
Field Value
HeightPropertyDefinition
public static readonly Property<int, GLTextureBuilder> HeightPropertyDefinition
Field Value
IdPropertyDefinition
public static readonly Property<uint, GLTextureBuilder> IdPropertyDefinition
Field Value
SyncPropertyDefinition
public static readonly Property<nint, GLTextureBuilder> SyncPropertyDefinition
Field Value
UpdateRegionPropertyDefinition
public static readonly Property<Region, GLTextureBuilder> UpdateRegionPropertyDefinition
Field Value
UpdateTexturePropertyDefinition
public static readonly Property<Texture?, GLTextureBuilder> UpdateTexturePropertyDefinition
Field Value
WidthPropertyDefinition
public static readonly Property<int, GLTextureBuilder> WidthPropertyDefinition
Field Value
Properties
ColorState
public ColorState ColorState { get; set; }
Property Value
Context
public GLContext? Context { get; set; }
Property Value
Format
public MemoryFormat Format { get; set; }
Property Value
HasMipmap
public bool HasMipmap { get; set; }
Property Value
Height
public int Height { get; set; }
Property Value
Id
public uint Id { get; set; }
Property Value
Sync
public nint Sync { get; set; }
Property Value
UpdateRegion
public Region UpdateRegion { get; set; }
Property Value
UpdateTexture
public Texture? UpdateTexture { get; set; }
Property Value
Width
public int Width { get; set; }
Property Value
Methods
GetColorState()
[Version("4.16")]
public ColorState GetColorState()
Returns
GetContext()
[Version("4.12")]
public GLContext? GetContext()
Returns
GetFormat()
[Version("4.12")]
public MemoryFormat GetFormat()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasMipmap()
[Version("4.12")]
public bool GetHasMipmap()
Returns
GetHeight()
[Version("4.12")]
public int GetHeight()
Returns
GetId()
[Version("4.12")]
public uint GetId()
Returns
GetSync()
[Version("4.12")]
public nint GetSync()
Returns
GetUpdateRegion()
[Version("4.12")]
public Region? GetUpdateRegion()
Returns
GetUpdateTexture()
[Version("4.12")]
public Texture? GetUpdateTexture()
Returns
GetWidth()
[Version("4.12")]
public int GetWidth()
Returns
New()
[Version("4.12")]
public static GLTextureBuilder New()
Returns
NewFromPointer(nint, bool)
Creates a new managed GLTextureBuilder instance for a given pointer.
public static GLTextureBuilder NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GLTextureBuilder and sets the properties specified by the construct arguments.
public static GLTextureBuilder NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetColorState(ColorState)
[Version("4.16")]
public void SetColorState(ColorState colorState)
Parameters
colorStateColorState
SetContext(GLContext?)
[Version("4.12")]
public void SetContext(GLContext? context)
Parameters
contextGLContext
SetFormat(MemoryFormat)
[Version("4.12")]
public void SetFormat(MemoryFormat format)
Parameters
formatMemoryFormat
SetHasMipmap(bool)
[Version("4.12")]
public void SetHasMipmap(bool hasMipmap)
Parameters
hasMipmapbool
SetHeight(int)
[Version("4.12")]
public void SetHeight(int height)
Parameters
heightint
SetId(uint)
[Version("4.12")]
public void SetId(uint id)
Parameters
iduint
SetSync(nint)
[Version("4.12")]
public void SetSync(nint sync)
Parameters
syncnint
SetUpdateRegion(Region?)
[Version("4.12")]
public void SetUpdateRegion(Region? region)
Parameters
regionRegion
SetUpdateTexture(Texture?)
[Version("4.12")]
public void SetUpdateTexture(Texture? texture)
Parameters
textureTexture
SetWidth(int)
[Version("4.12")]
public void SetWidth(int width)
Parameters
widthint