GLModel

Undocumented in source.

Constructors

this
this(GameManager game, Vertex[] vertices, uint[] indices, Texture texture, ShaderProgram shader)
Undocumented in source.

Members

Enums

VBOIndexes
enum VBOIndexes

Enum containing array positions for Mesh VBOs.

Functions

cleanup
void cleanup()

Cleanup resources used by the Model.

render_
void render_(Renderer renderer)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

drawCount
size_t drawCount [@property getter]

The amount of points (vertices) that will be rendered. This is equal to the amount of indices.

drawCount
size_t drawCount [@property setter]

The amount of points (vertices) that will be rendered. This is equal to the amount of indices.

vao
VAO vao [@property getter]

The VAO belonging to the Mesh.

Variables

_drawCount
size_t _drawCount;
Undocumented in source.
vboList
VBO[uint] vboList;
Undocumented in source.

Inherited Members

From Model

vertices
Vertex[] vertices;
Undocumented in source.
_indices
uint[] _indices;
Undocumented in source.
_texture
Texture _texture;
Undocumented in source.
_shader
ShaderProgram _shader;
Undocumented in source.
indices
uint[] indices [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
ShaderProgram shader [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
modelFactory
Model modelFactory(GameManager game, Vertex[] vertices, uint[] indices, Texture texture, ShaderProgram shader, GraphicsBackendType backend)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Renderer renderer)
Undocumented in source. Be warned that the author may not have intended to support it.
cleanup
void cleanup()
Undocumented in source.
render_
void render_(Renderer renderer)
Undocumented in source.

Meta