OpenGLContext

Description

sealed class Tinman.AddOns.OpenGL.OpenGLContext

Derived from

GraphicsContext abstract

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:

Public / Constructors

Open​GLContext


public constructor OpenGLContext → (3)

renderContext in : RenderContext own

[not-null]
The RenderContext object to use for GLApi.OpenGL_41.

availableVideoMemory in : int32

[>=0]
See IGraphicsContextFactory.AvailableVideoMemory.

shaderRepository in : Path

[not-null]
See IGraphicsContextFactory.ShaderRepository.

Creates a new instance of OpenGLContext.

RenderException

If a graphics subsystem error has occurred.