GlistEngine
Loading...
Searching...
No Matches
gBaseParticles Class Reference

#include <gBaseParticles.h>

Inheritance diagram for gBaseParticles:
Collaboration diagram for gBaseParticles:

Public Member Functions

 gBaseParticles ()
 
virtual ~gBaseParticles ()
 
virtual void init (int particleNum)
 
virtual void resetParticle (int particleNo)
 
void loadTexture (std::string texturePath)
 
void setTexture (gTexture *texture)
 
void draw ()
 
void destroy ()
 
void setLimit (float fLimitL, float fLimitR, float fLimitT, float fLimitB)
 
void setLimit (bool bLimit)
 
void setCurrentColor (int nParticle, float fRed, float fGreen, float fBlue, float fAlpha)
 
void setFadeColor (int nParticle, float fRed, float fGreen, float fBlue, float fAlpha)
 
void setDirection (int nParticle, float fX, float fY, float fZ)
 
void setGravity (int nParticle, float fX, float fY, float fZ)
 
void setLR (int nParticle, float fX, float fY, float fZ)
 
void setUL (int nParticle, float fX, float fY, float fZ)
 
void setAge (int nParticle, float fAge)
 
void setFrame (int nParticle, int nFrame)
 
void setGravityFactor (int nParticle, float fGravityFactor)
 
void setLife (int nParticle, float fLife)
 
void setFadeLife (int nParticle, float fFadeLife)
 
void setImgPath (std::string szImgPath)
 
void setInitialColor (float fRed, float fGreen, float fBlue, float fAlpha)
 
- Public Member Functions inherited from gRenderObject
 gRenderObject ()
 
int getScreenWidth ()
 
int getScreenHeight ()
 
void pushMatrix ()
 
void popMatrix ()
 
- Public Member Functions inherited from gObject
 gObject ()
 
void logi (std::string message)
 
void logd (std::string message)
 
void logw (std::string message)
 
void loge (std::string message)
 
void logi (std::string tag, std::string message)
 
void logd (std::string tag, std::string message)
 
void logw (std::string tag, std::string message)
 
void loge (std::string tag, std::string message)
 

Public Attributes

gPlane gp
 

Protected Attributes

bool m_bLimit
 
gParticleparticle
 
bool m_bEngineActive
 
int particlenum
 
int m_nAge
 
float m_fLimitR
 
float m_fLimitL
 
float m_fLimitT
 
float m_fLimitB
 
std::string imagepath
 
gTextureg
 
gColor m_clrParticleColor
 
int particleno
 
bool previousalpha
 

Additional Inherited Members

- Static Public Member Functions inherited from gRenderObject
static void setScreenSize (int screenWidth, int screenHeight)
 
static void setUnitScreenSize (int unitWidth, int unitHeight)
 
static void setScreenScaling (int screenScaling)
 
static void enableShadowMapping ()
 
static void disableShadowMapping ()
 
static bool isShadowMappingEnabled ()
 
static gRenderergetRenderer ()
 
static void destroyRenderer ()
 
static void createRenderer ()
 
- Static Public Member Functions inherited from gObject
static std::string gGetAppDir ()
 
static std::string gGetAssetsDir ()
 
static void gSetAssetsDir (std::string assetsDir)
 
static std::string gGetFilesDir ()
 
static std::string gGetImagesDir ()
 
static std::string gGetFontsDir ()
 
static std::string gGetModelsDir ()
 
static std::string gGetTexturesDir ()
 
static std::string gGetShadersDir ()
 
static std::string gGetSoundsDir ()
 
static std::string gGetDatabasesDir ()
 
static std::string gGetVideosDir ()
 
static void setCurrentResolution (int scalingNo, int currentResolutionNo)
 
- Static Public Attributes inherited from gObject
static const int LOGLEVEL_SILENT
 
static const int LOGLEVEL_DEBUG
 
static const int LOGLEVEL_INFO
 
static const int LOGLEVEL_WARNING
 
static const int LOGLEVEL_ERROR
 
- Static Protected Attributes inherited from gRenderObject
static bool isshadowmappingenabled
 
- Static Protected Attributes inherited from gObject
static int renderpassnum
 
static int renderpassno
 
static int releasescaling
 
static int releaseresolution
 

Constructor & Destructor Documentation

◆ gBaseParticles()

gBaseParticles::gBaseParticles ( )

◆ ~gBaseParticles()

virtual gBaseParticles::~gBaseParticles ( )
virtual

Member Function Documentation

◆ destroy()

void gBaseParticles::destroy ( )

◆ draw()

void gBaseParticles::draw ( )

◆ init()

virtual void gBaseParticles::init ( int  particleNum)
virtual

Reimplemented in gFireParticles, and gFireworksParticles.

◆ loadTexture()

void gBaseParticles::loadTexture ( std::string  texturePath)

◆ resetParticle()

virtual void gBaseParticles::resetParticle ( int  particleNo)
virtual

Reimplemented in gFireParticles, and gFireworksParticles.

◆ setAge()

void gBaseParticles::setAge ( int  nParticle,
float  fAge 
)

◆ setCurrentColor()

void gBaseParticles::setCurrentColor ( int  nParticle,
float  fRed,
float  fGreen,
float  fBlue,
float  fAlpha 
)

◆ setDirection()

void gBaseParticles::setDirection ( int  nParticle,
float  fX,
float  fY,
float  fZ 
)

◆ setFadeColor()

void gBaseParticles::setFadeColor ( int  nParticle,
float  fRed,
float  fGreen,
float  fBlue,
float  fAlpha 
)

◆ setFadeLife()

void gBaseParticles::setFadeLife ( int  nParticle,
float  fFadeLife 
)

◆ setFrame()

void gBaseParticles::setFrame ( int  nParticle,
int  nFrame 
)

◆ setGravity()

void gBaseParticles::setGravity ( int  nParticle,
float  fX,
float  fY,
float  fZ 
)

◆ setGravityFactor()

void gBaseParticles::setGravityFactor ( int  nParticle,
float  fGravityFactor 
)

◆ setImgPath()

void gBaseParticles::setImgPath ( std::string  szImgPath)

◆ setInitialColor()

void gBaseParticles::setInitialColor ( float  fRed,
float  fGreen,
float  fBlue,
float  fAlpha 
)

◆ setLife()

void gBaseParticles::setLife ( int  nParticle,
float  fLife 
)

◆ setLimit() [1/2]

void gBaseParticles::setLimit ( bool  bLimit)

◆ setLimit() [2/2]

void gBaseParticles::setLimit ( float  fLimitL,
float  fLimitR,
float  fLimitT,
float  fLimitB 
)

◆ setLR()

void gBaseParticles::setLR ( int  nParticle,
float  fX,
float  fY,
float  fZ 
)

◆ setTexture()

void gBaseParticles::setTexture ( gTexture texture)

◆ setUL()

void gBaseParticles::setUL ( int  nParticle,
float  fX,
float  fY,
float  fZ 
)

Member Data Documentation

◆ g

gTexture* gBaseParticles::g
protected

◆ gp

gPlane gBaseParticles::gp

◆ imagepath

std::string gBaseParticles::imagepath
protected

◆ m_bEngineActive

bool gBaseParticles::m_bEngineActive
protected

◆ m_bLimit

bool gBaseParticles::m_bLimit
protected

◆ m_clrParticleColor

gColor gBaseParticles::m_clrParticleColor
protected

◆ m_fLimitB

float gBaseParticles::m_fLimitB
protected

◆ m_fLimitL

float gBaseParticles::m_fLimitL
protected

◆ m_fLimitR

float gBaseParticles::m_fLimitR
protected

◆ m_fLimitT

float gBaseParticles::m_fLimitT
protected

◆ m_nAge

int gBaseParticles::m_nAge
protected

◆ particle

gParticle* gBaseParticles::particle
protected

◆ particleno

int gBaseParticles::particleno
protected

◆ particlenum

int gBaseParticles::particlenum
protected

◆ previousalpha

bool gBaseParticles::previousalpha
protected

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