Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ParticleRenderer Class Reference

Render particles. More...

#include <ParticleRenderer.h>

Collaboration diagram for ParticleRenderer:

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

ParticleRendererInternalsm
 

Detailed Description

Render particles.

Constructor & Destructor Documentation

◆ ParticleRenderer()

ParticleRenderer::ParticleRenderer ( )

◆ ~ParticleRenderer()

ParticleRenderer::~ParticleRenderer ( )

Member Function Documentation

◆ EndFrame()

void ParticleRenderer::EndFrame ( )

Reset the list of submitted overlays.

◆ NONCOPYABLE()

ParticleRenderer::NONCOPYABLE ( ParticleRenderer  )
private

◆ PrepareForRendering()

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.

◆ RenderBounds()

void ParticleRenderer::RenderBounds ( int  cullGroup)

Render bounding boxes for all the submitted emitters.

◆ RenderParticles()

void ParticleRenderer::RenderParticles ( Renderer::Backend::IDeviceCommandContext deviceCommandContext,
int  cullGroup,
bool  wireframe = false 
)

Render all the submitted particles.

◆ Submit()

void ParticleRenderer::Submit ( int  cullGroup,
CParticleEmitter emitter 
)

Add an emitter for rendering in this frame.

◆ Upload()

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.

Member Data Documentation

◆ m

ParticleRendererInternals* ParticleRenderer::m
private

The documentation for this class was generated from the following files: