OpenGLTextureFactory
Description
- Derived from
-
TextureFactory abstract
IRenderContextDependent
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
OpenGLTextureFactory
Creates a new instance of OpenGLTextureFactory.
- RenderException
-
If a graphics subsystem error has occurred.