GLModel

Undocumented in source.

Constructors

this
this(string name, 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()
Undocumented in source. Be warned that the author may not have intended to support it.
render_
void render_(Renderer renderer)

Will be called in the Renderer thread from GLRenderer

replaceVertex_
void replaceVertex_(size_t pos, Vertex v)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceVertices_
void replaceVertices_()
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

name
string name;
Undocumented in source.
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.
game
GameManager game [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
build
Model build(string name, GameManager game, Vertex[] vertices, uint[] indices, Texture texture, ShaderProgram shader)
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.
replaceVertices
void replaceVertices(Vertex[] vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceVertex
void replaceVertex(size_t arrayPosition, Vertex vertex)
Undocumented in source.
getVertex
Vertex getVertex(size_t arrayPosition)
Undocumented in source.
getVertices
Vertex[] getVertices()
Undocumented in source. Be warned that the author may not have intended to support it.
getRenderingLock
shared(Lock) getRenderingLock()

Allows returning the lock used for preventing changes while renderering.

cleanup
void cleanup()
Undocumented in source.
replaceVertices_
void replaceVertices_()
Undocumented in source.
replaceVertex_
void replaceVertex_(size_t pos, Vertex v)
Undocumented in source.
render_
void render_(Renderer renderer)
Undocumented in source.

Meta