Model

Represents a Model which can be rendered. A Model has a Shader and a Texture

Constructors

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

Members

Functions

cleanup
void cleanup()
Undocumented in source.
getRenderingLock
shared(Lock) getRenderingLock()

Allows returning the lock used for preventing changes while renderering.

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.
render
void render(Renderer renderer)
Undocumented in source. Be warned that the author may not have intended to support it.
render_
void render_(Renderer renderer)
Undocumented in source.
replaceVertex
void replaceVertex(size_t arrayPosition, Vertex vertex)
Undocumented in source.
replaceVertex_
void replaceVertex_(size_t pos, Vertex v)
Undocumented in source.
replaceVertices
void replaceVertices(Vertex[] vertices)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceVertices_
void replaceVertices_()
Undocumented in source.

Properties

game
GameManager game [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
indices
uint[] indices [@property getter]
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.
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.

Static functions

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.

Variables

_indices
uint[] _indices;
Undocumented in source.
_shader
ShaderProgram _shader;
Undocumented in source.
_texture
Texture _texture;
Undocumented in source.
name
string name;
Undocumented in source.
vertices
Vertex[] vertices;
Undocumented in source.

Meta