OpenGLESTextureFactory

Description

sealed class Tinman.AddOns.OpenGLES.OpenGLESTextureFactory

Derived from

TextureFactory abstract
IRenderContextDependent

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

Implementation of the IBufferFactory that uses an OpenGLES context.

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

Public / Constructors

Open​GLESTexture​Factory


public constructor OpenGLESTextureFactory → (3)

context in : RenderContext

[not-null]
The RenderContext object to use (RenderContext.Api must be GLApi.OpenGLES_30).

availableVideoMemory in : int64

[>=0]
See ITextureFactory.AvailableVideoMemory.

maximumSize in : int64

[>=0]
See ITextureFactory.MaximumSize.

Creates a new instance of OpenGLESTextureFactory.

RenderException

If a graphics subsystem error has occurred.