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, IDisposable, 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 debuggers tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
NativePointer
Gets the native pointer.
Declaration
public override IntPtr NativePointer { get; }
Property Value
Type | Description |
---|---|
IntPtr |
Overrides
Methods
HasStencil()
Whether the texture format has stencil.
Declaration
public bool HasStencil()
Returns
Type | Description |
---|---|
bool | Return if the texture has stencil. |