Class GLBaseTexture
The OpenGL implementation of a texture object.
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public abstract class GLBaseTexture : Texture, ILoadable, IDependencyObject
Constructors
GLBaseTexture(GraphicsContext, ref TextureDescription)
Initializes a new instance of the GLBaseTexture class.
Declaration
public GLBaseTexture(GraphicsContext context, ref TextureDescription description)
Parameters
Type | Name | Description |
---|---|---|
GraphicsContext | context | The graphics context. |
TextureDescription | description | The texture description. |
Fields
Format
The GL format for this texture, GLPixelFormat.
Declaration
public GLPixelFormat Format
Field Value
Type | Description |
---|---|
GLPixelFormat |
TextureTarget
The GL texture target for this texture.
Declaration
public TextureTarget TextureTarget
Field Value
Type | Description |
---|---|
TextureTarget |
Properties
Name
Gets or sets a string identifying this instance. Can be used in graphics debugger tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
NativePointer
Gets the native pointer.
Declaration
public override nint NativePointer { get; }
Property Value
Type | Description |
---|---|
nint |
Overrides
Methods
HasStencil()
Indicates whether the texture format has a stencil.
Declaration
public bool HasStencil()
Returns
Type | Description |
---|---|
bool | Returns whether the texture has a stencil. |