Class GLTexture2D
- Namespace
- SearchAThing.OpenGL.Core
- Assembly
- netcore-opengl-core.dll
Handle reference to gl texture.
[JsonObject(MemberSerialization.OptIn)]
public class GLTexture2D : IGLContextObject, IGLTexture2D, IDisposable
- Inheritance
-
GLTexture2D
- Implements
- Inherited Members
Constructors
GLTexture2D(GLContext, SKBitmap, InternalFormat, PixelFormat)
Create gl texture 2d.
public GLTexture2D(GLContext glContext, SKBitmap bitmap, InternalFormat internalFormat = InternalFormat.Rgba8, PixelFormat pixelFormat = PixelFormat.Rgba)
Parameters
glContext
GLContextGl context.
bitmap
SKBitmapSkia bitmap that hold texture bitmap.
internalFormat
InternalFormatGpu internal storage format.
pixelFormat
PixelFormatImage buffer format.
Properties
Bitmap
Skia bitmap that hold texture bitmap.
public SKBitmap Bitmap { get; }
Property Value
GL
Gl api.
public GL GL { get; }
Property Value
- GL
GLContext
Gl context.
public GLContext GLContext { get; set; }
Property Value
Height
Height of the bitmap (pixels).
[JsonProperty]
public uint Height { get; }
Property Value
InternalFormat
Gpu internal storage format.
[JsonProperty]
public InternalFormat InternalFormat { get; }
Property Value
- InternalFormat
PixelFormat
Image buffer format.
[JsonProperty]
public PixelFormat PixelFormat { get; }
Property Value
- PixelFormat
TextureId
Texture id.
public uint TextureId { get; }
Property Value
Width
Width of the bitmap (pixels).
[JsonProperty]
public uint Width { get; }
Property Value
Methods
Dispose()
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool
~GLTexture2D()
protected ~GLTexture2D()