Table of Contents

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 GLContext

Gl context.

bitmap SKBitmap

Skia bitmap that hold texture bitmap.

internalFormat InternalFormat

Gpu internal storage format.

pixelFormat PixelFormat

Image buffer format.

Properties

Bitmap

Skia bitmap that hold texture bitmap.

public SKBitmap Bitmap { get; }

Property Value

SKBitmap

GL

Gl api.

public GL GL { get; }

Property Value

GL

GLContext

Gl context.

public GLContext GLContext { get; set; }

Property Value

GLContext

Height

Height of the bitmap (pixels).

[JsonProperty]
public uint Height { get; }

Property Value

uint

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

uint

Width

Width of the bitmap (pixels).

[JsonProperty]
public uint Width { get; }

Property Value

uint

Methods

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

~GLTexture2D()

protected ~GLTexture2D()