OpenGLContextFactory

Description

sealed class Tinman.AddOns.OpenGL.OpenGLContextFactory

Derived from

GraphicsContextFactory abstract

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

Factory for OpenGLContext.

The graphics contexts produced by this factory use the following directories in the shader repository (see IGraphicsContextFactory.ShaderRepository):

  • glsl/
    Shared GLSL source code for compilation by the OpenGL implementation at runtime.

  • glsl.gl41/
    Entry points for GLSL programs for OpenGL 4.1 Core Profile (or newer).

  • glsl.cache/
    Cached for GLSL programs binaries in machine-specific format.

Public / Constructors

Open​GLContext​Factory


public constructor OpenGLContextFactory → ()

Creates a new instance of OpenGLContextFactory.

Public / Attributes

Plain


public attribute Plain → (get,set)

value : bool

true to use plain mode,
false to use regular mode,

Create a graphics context in plain mode?

Defaults to false.

See also

GLBase.Plain

Configuration

Config


public static attribute Config → (get)

value : IConfigurator<IGraphicsContextFactory>

[not-null]
The configurator object.

The configurator object for this type.