Wavefront

Undocumented in source.

Constructors

this
this(GraphicsDevice graphicsDevice)
Undocumented in source.

Members

Enums

MaterialType
enum MaterialType
Undocumented in source.

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source. Be warned that the author may not have intended to support it.
drawInstances
void drawInstances(bool bindTexture)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

currentBoundingBox
BoundingBox currentBoundingBox [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
currentBoundingBox
BoundingBox currentBoundingBox [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
navPolygon
PolygonDefinition navPolygon [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
trianglesNumber
int trianglesNumber [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

load
Wavefront load(string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
loadMaterials
Material[string] loadMaterials(string materialName)

Loads wavefront material.

loadNavPolygon
PolygonDefinition loadNavPolygon(string navName, BoundingBox boundingBox)

Loads nav polygon

Structs

Material
struct Material
Undocumented in source.

Inherited Members

From Model

m_instancingBuffers
uint[] m_instancingBuffers;

Buffer for instancing

m_instancesCount
uint m_instancesCount;

Instances count

m_shader
Shader m_shader;

Shader

dispose
void dispose()

Model destructor.

initializeInstancing
void initializeInstancing(uint instancesCount, int buffersCount)

Initializes instancing data.

setInstancingBufferData
void setInstancingBufferData(int index, void* data)

Sets buffer data for buffer at position index.

updateInstancingBufferData
void updateInstancingBufferData(int index, uint offset, uint size, void* data)

Updates buffer data for buffer at position index.

getInstancingBuffer
uint getInstancingBuffer(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
drawInstances
void drawInstances(bool bindTexture)

Draws all instances, depends on model impl

vao
uint vao [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
instancesCount
uint instancesCount [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
availableInstances
bool availableInstances [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta