Class GLSupport
OpenGL support helper
Inherits from
-
Object
(base class)
Constructors
Name | Description |
---|---|
this
|
Fields
Name | Type | Description |
---|---|---|
Z_2D
|
immutable(float) |
|
_lineProgram
|
LineProgram |
|
_solidFillProgram
|
SolidFillProgram |
|
_textureProgram
|
TextureProgram |
Properties
Name | Type | Description |
---|---|---|
legacyMode
[get]
|
bool |
|
projectionMatrix
[get]
|
mat4 |
|
valid
[get]
|
bool |
Methods
Name | Description |
---|---|
bindFramebuffer
|
|
clearDepthBuffer
|
|
createFramebuffer
|
returns texture for buffer, null if failed
|
deleteFramebuffer
|
|
destroyBuffers
|
|
drawColorAndTextureRect
|
|
drawLine
|
|
drawSolidFillRect
|
|
flushGL
|
call glFlush |
initShaders
|
|
setOrthoProjection
|
|
setPerspectiveProjection
|
|
setRotation
|
|
setTextureImage
|
|
setTextureImageAlpha
|
|
uninitShaders
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0