Model

Model.

Constructors

this
this(GraphicsDevice graphicsDevice)

Model constructor.

Members

Functions

dispose
void dispose()

Model destructor.

drawInstances
void drawInstances(bool bindTexture)

Draws all instances, depends on model impl

getInstancingBuffer
uint getInstancingBuffer(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Properties

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

Variables

m_instancesCount
uint m_instancesCount;

Instances count

m_instancingBuffers
uint[] m_instancingBuffers;

Buffer for instancing

m_shader
Shader m_shader;

Shader

Inherited Members

From Drawable

m_graphicsDevice
GraphicsDevice m_graphicsDevice;
Undocumented in source.
m_shader
Shader m_shader;
Undocumented in source.
m_position
vec3 m_position;
Undocumented in source.
m_scale
vec3 m_scale;
Undocumented in source.
m_rotation
Quaternionf m_rotation;
Undocumented in source.
m_size
Size!int m_size;
Undocumented in source.
m_texture
Texture m_texture;
Undocumented in source.
m_isVisible
bool m_isVisible;
Undocumented in source.
m_vao
uint m_vao;
m_vertexBuffer
uint m_vertexBuffer;
m_indexBuffer
uint m_indexBuffer;
Undocumented in source.
draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source.
graphics
GraphicsDevice graphics [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
graphics
GraphicsDevice graphics [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
const(vec3) position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
vec3 position [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
vec3 scale [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rotation
Quaternionf rotation [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
const(Size!int) size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
Size!int size [@property setter]
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.
isVisible
bool isVisible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
vertexBuffer
uint vertexBuffer [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

From IAsset

load
void load(string fileName, ...)
Undocumented in source.
dispose
void dispose()
Undocumented in source.

Meta