Class GLSupport

OpenGL support helper

class GLSupport;

Constructors

NameDescription
this (legacy)

Properties

NameTypeDescription
legacyMode[get] bool
projectionMatrix[get] mat4
queue[get] dcanvas.graphics.glsupport.OpenGLQueue
valid[get] bool

Methods

NameDescription
beforeRenderGUI ()
bindFramebuffer (fbo)
clearDepthBuffer ()
createFramebuffer (texture, fbo, dx, dy) returns texture for buffer, null if failed
deleteFramebuffer (fbo)
flushGL () call glFlush
generateMipmap (dx, dy, pixels, level, dst)
setOrthoProjection (windowRect, view)
setPerspectiveProjection (windowRect, view, fieldOfView, nearPlane, farPlane)
setTextureImage (texture, dx, dy, pixels, mipmapLevels)
setTextureImageAlpha (texture, dx, dy, pixels)

Aliases

NameDescription
~this