- Derived from
|Full source code is included in the Tinman 3D SDK download.|
An implementation of the IGraphicsContext that uses an OpenGL 4.1 context.
You can use the OpenGLContextFactory object to configure and create an instance of this class. Also you can use the constructor to wrap an existing GL object.
The returned INativeHandles can be interpreted as follows:
Same as returned by RenderContext object given at construction.
IIndexBuffer (created by IGraphicsContext.BufferFactory):
The OpenGL name of the index buffer object.
IVertexBuffer (created by IGraphicsContext.BufferFactory):
The OpenGL name of the vertex buffer object.
ITexture2D (created by IGraphicsContext.TextureFactory:
The OpenGL name of the texture object (GL.TEXTURE_2D_ARRAY).
ITextureCube (created by IGraphicsContext.CreateTextureCube):
The OpenGL name of the texture object (GL.TEXTURE_CUBE_MAP).
IRenderTarget (created by IGraphicsContext.CreateRenderTarget or IGraphicsContext.CreateSwapChain):
The OpenGL name of the framebuffer object.
Public / Constructors
Creates a new instance of OpenGLContext.
If a graphics subsystem error has occurred.