Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Render particles. More...
#include <ParticleRenderer.h>
Public Member Functions | |
ParticleRenderer () | |
~ParticleRenderer () | |
void | Submit (int cullGroup, CParticleEmitter *emitter) |
Add an emitter for rendering in this frame. More... | |
void | PrepareForRendering (const CShaderDefines &context) |
Prepare internal data structures for rendering. More... | |
void | Upload (Renderer::Backend::IDeviceCommandContext *deviceCommandContext) |
Upload internal data to the backend. More... | |
void | EndFrame () |
Reset the list of submitted overlays. More... | |
void | RenderParticles (Renderer::Backend::IDeviceCommandContext *deviceCommandContext, int cullGroup, bool wireframe=false) |
Render all the submitted particles. More... | |
void | RenderBounds (int cullGroup) |
Render bounding boxes for all the submitted emitters. More... | |
Private Member Functions | |
NONCOPYABLE (ParticleRenderer) | |
Private Attributes | |
ParticleRendererInternals * | m |
Render particles.
ParticleRenderer::ParticleRenderer | ( | ) |
ParticleRenderer::~ParticleRenderer | ( | ) |
void ParticleRenderer::EndFrame | ( | ) |
Reset the list of submitted overlays.
|
private |
void ParticleRenderer::PrepareForRendering | ( | const CShaderDefines & | context | ) |
Prepare internal data structures for rendering.
Must be called after all Submit calls for a frame, and before any rendering calls.
void ParticleRenderer::RenderBounds | ( | int | cullGroup | ) |
Render bounding boxes for all the submitted emitters.
void ParticleRenderer::RenderParticles | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext, |
int | cullGroup, | ||
bool | wireframe = false |
||
) |
Render all the submitted particles.
void ParticleRenderer::Submit | ( | int | cullGroup, |
CParticleEmitter * | emitter | ||
) |
Add an emitter for rendering in this frame.
void ParticleRenderer::Upload | ( | Renderer::Backend::IDeviceCommandContext * | deviceCommandContext | ) |
Upload internal data to the backend.
Must be called after the data is prepared and before any rendering calls.
|
private |