MyOpenglWidget

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

animate
void animate(long interval)

animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second)

createMesh
void createMesh()
Undocumented in source. Be warned that the author may not have intended to support it.
drawUsingNewAPI
void drawUsingNewAPI(Rect windowRect, Rect rc)

New API example (OpenGL3+, shaders)

drawUsingOldAPI
void drawUsingOldAPI(Rect windowRect, Rect rc)

Legacy API example (glBegin/glEnd) - glxGears

Properties

animating
bool animating [@property getter]

returns true is widget is being animated - need to call animate() and redraw

Variables

_exampleIndex
int _exampleIndex;
Undocumented in source.
_program
MyGLProgram _program;
Undocumented in source.
_tx
GLTexture _tx;
Undocumented in source.
_vao
VAO _vao;
Undocumented in source.
_vbo
VBO _vbo;
Undocumented in source.
colors
float[4 * 6 * 6] colors;
Undocumented in source.
texcoords
float[] texcoords;
Undocumented in source.
vertices
float[] vertices;
Undocumented in source.

Meta