sealed class Tinman.AddOns.OpenGL.OpenGLTextureFactory

Derived from

TextureFactory abstract

Full source code is included in the Tinman 3D SDK download.

Implementation of the IBufferFactory that uses an OpenGL context.

For custom texture formats, the TextureFormat.FormatIdentifier method must return the following values:
Vec4I.X: The OpenGL internal format (e.g. GL.RGBA8)
Vec4I.Y: The OpenGL data format (e.g. GL.RGBA)
Vec4I.Z: The OpenGL data type (e.g. example GL.UNSIGNED_BYTE)
If the internal format is compressed, the data format and data type must be zero.

Public / Constructors


public constructor OpenGLTextureFactory → (3)

context in : RenderContext

The RenderContext object to use (RenderContext.Api must be GLApi.OpenGL_41).

availableVideoMemory in : int64

See ITextureFactory.AvailableVideoMemory.

maximumSize in : int64

See ITextureFactory.MaximumSize.

Creates a new instance of OpenGLTextureFactory.


If a graphics subsystem error has occurred.