Space Fighter
A "shmup" game for Computer Programming C++
Loading...
Searching...
No Matches
KatanaEngine::ParticleRenderer Class Reference

Basic particle updater. More...

#include <ParticleRenderer.h>

Inheritance diagram for KatanaEngine::ParticleRenderer:

Public Member Functions

virtual void Draw (IParticle *pParticle, SpriteBatch &spriteBatch) const
 Draws the particle.
 
void SetTexture (Texture *pTexture)
 Sets the texture to use when rendering the particle.
 

Detailed Description

Basic particle updater.

Definition at line 24 of file ParticleRenderer.h.

Member Function Documentation

◆ Draw()

virtual void KatanaEngine::ParticleRenderer::Draw ( IParticle * pParticle,
SpriteBatch & spriteBatch ) const
inlinevirtual

Draws the particle.

Parameters
pParticleA pointer to the particle to draw.
spriteBatchA reference to the game's sprite batch, used for rendering.

Implements KatanaEngine::IParticleRenderer.

Definition at line 32 of file ParticleRenderer.h.

◆ SetTexture()

void KatanaEngine::ParticleRenderer::SetTexture ( Texture * pTexture)
inline

Sets the texture to use when rendering the particle.

Parameters
pTextureA pointer to the texture to use.

Definition at line 48 of file ParticleRenderer.h.


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