jGL
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Attributes | List of all members
jGL::Particles Class Referenceabstract

#include <particles.h>

Inheritance diagram for jGL::Particles:
Inheritance graph
[legend]

Classes

struct  UpdateInfo
 

Public Member Functions

 Particles (size_t sizeHint)
 
 Particles (std::vector< TexturedParticle > p)
 
virtual ~Particles ()=default
 
virtual void update (UpdateInfo info)=0
 
virtual void draw (glm::mat4 proj)=0
 
virtual void setTexture (std::shared_ptr< Texture >)=0
 
std::vector< TexturedParticle > & getParticles ()
 
void setBaseLineScale (float s)
 

Protected Attributes

float baseLineScalePixels = 1.0f
 
std::vector< TexturedParticlepoints
 
std::shared_ptr< Texturetexture
 
uint32_t uploaded = 0
 
uint32_t drawing = 0
 

Constructor & Destructor Documentation

◆ Particles() [1/2]

jGL::Particles::Particles ( size_t  sizeHint)
inline

◆ Particles() [2/2]

jGL::Particles::Particles ( std::vector< TexturedParticle p)
inline

◆ ~Particles()

virtual jGL::Particles::~Particles ( )
virtualdefault

Member Function Documentation

◆ draw()

virtual void jGL::Particles::draw ( glm::mat4  proj)
pure virtual

◆ getParticles()

std::vector< TexturedParticle > & jGL::Particles::getParticles ( )
inline

◆ setBaseLineScale()

void jGL::Particles::setBaseLineScale ( float  s)
inline

◆ setTexture()

virtual void jGL::Particles::setTexture ( std::shared_ptr< Texture )
pure virtual

◆ update()

virtual void jGL::Particles::update ( UpdateInfo  info)
pure virtual

Member Data Documentation

◆ baseLineScalePixels

float jGL::Particles::baseLineScalePixels = 1.0f
protected

◆ drawing

uint32_t jGL::Particles::drawing = 0
protected

◆ points

std::vector<TexturedParticle> jGL::Particles::points
protected

◆ texture

std::shared_ptr<Texture> jGL::Particles::texture
protected

◆ uploaded

uint32_t jGL::Particles::uploaded = 0
protected

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