Effect

Effect.

Constructors

this
this(vec3 position)

Effect constructor.

Members

Functions

addEmitter
void addEmitter(ParticleEmitter emitter)

Adds a new emitter to this effect.

draw
void draw(float deltaTime, mat4 view, mat4 projection)

Renders the effect.

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.

Meta