OpenGLContext

open class OpenGLContext(var context: Context? = null) : IOpenGLContext

OpenGLContext open object.

Constructors

Link copied to clipboard
constructor(context: Context? = null)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard
Link copied to clipboard

Context attached display type

Link copied to clipboard
val dpi: Int

Context attached display DPI in physicals pixels / inch

Link copied to clipboard
Link copied to clipboard

Fonts modifiers

Link copied to clipboard
Link copied to clipboard

Context attached physical / logical pixel ratio

Link copied to clipboard

Safe area rectangle specific for new iPhones

Link copied to clipboard

System rendering context address (platform-dependent)

Link copied to clipboard

Textures scale factor.

Link copied to clipboard

Viewport rectangle associated with this rendering context

Functions

Link copied to clipboard
open override fun doAction(act: IOpenGLContext.EAction): Boolean

The function is called when the SDK request an operation on the context.

Link copied to clipboard
open override fun doneCurrent(): Boolean

Make no GL context the current context. After this method no GL functions will be called by the engine.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
Link copied to clipboard
open override fun initialize(): Boolean

Create a new GL context.

Link copied to clipboard

Check if delayed initialization is required By returning true, all OpenGL context dependent objects ( screens, canvases, views ) will be initialized on the first Screen.render call The delay initialization can be used when OpenGL context dependent objects are created before the context is ready to use

Link copied to clipboard
open override fun isInitialized(): Boolean

Get initialized status.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
open override fun makeCurrent(): Boolean

Make this context the current OpenGL rendering context. All GL functions you call operate on this context until another context is made current.

Link copied to clipboard
open override fun needsRender()

GL context owner render request This notification is sent only when a screen render rule is set to ERR_Automatic

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if: