dlangui.graphics.glsupport

DLANGUI library.

This module contains OpenGL access layer.

To enable OpenGL support, build with version(USE_OPENGL);

Synopsis:

import dlangui.graphics.glsupport;

Members

Classes

GLProgram
class GLProgram
Undocumented in source.
SolidFillProgram
class SolidFillProgram
Undocumented in source.
TextureProgram
class TextureProgram
Undocumented in source.

Functions

QMatrix4x4_ortho
void QMatrix4x4_ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane)
Undocumented in source. Be warned that the author may not have intended to support it.
bindFramebuffer
bool bindFramebuffer(uint framebufferId)
Undocumented in source. Be warned that the author may not have intended to support it.
createFramebuffer
bool createFramebuffer(uint textureId, uint framebufferId, int dx, int dy)

returns texture ID for buffer, 0 if failed

deleteFramebuffer
void deleteFramebuffer(uint framebufferId)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteTexture
void deleteTexture(uint textureId)

delete OpenGL texture

drawColorAndTextureRect
void drawColorAndTextureRect(uint textureId, int tdx, int tdy, Rect srcrc, Rect dstrc, uint color, bool linear)
Undocumented in source. Be warned that the author may not have intended to support it.
drawColorAndTextureRect
void drawColorAndTextureRect(uint textureId, int tdx, int tdy, int srcx, int srcy, int srcdx, int srcdy, int xx, int yy, int dx, int dy, uint color, bool linear)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSolidFillRect
void drawSolidFillRect(Rect rc, uint color1, uint color2, uint color3, uint color4)
Undocumented in source. Be warned that the author may not have intended to support it.
flushGL
void flushGL()

call glFlush

genTexture
uint genTexture()

generate new texture ID

initShaders
bool initShaders()
Undocumented in source. Be warned that the author may not have intended to support it.
isTexture
bool isTexture(uint textureId)
Undocumented in source. Be warned that the author may not have intended to support it.
setOrthoProjection
void setOrthoProjection(int dx, int dy)
Undocumented in source. Be warned that the author may not have intended to support it.
setRotation
void setRotation(int x, int y, int rotationAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureImage
bool setTextureImage(uint textureId, int dx, int dy, ubyte* pixels)
Undocumented in source. Be warned that the author may not have intended to support it.
setTextureImageAlpha
bool setTextureImageAlpha(uint textureId, int dx, int dy, ubyte* pixels)
Undocumented in source. Be warned that the author may not have intended to support it.
uninitShaders
bool uninitShaders()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_solidFillProgram
SolidFillProgram _solidFillProgram;
Undocumented in source.
_textureProgram
TextureProgram _textureProgram;
Undocumented in source.

Variables

HIGHP
string HIGHP;
Undocumented in source.
LOWP
string LOWP;
Undocumented in source.
MEDIUMP
string MEDIUMP;
Undocumented in source.
Z_2D
float Z_2D;
Undocumented in source.

Meta