OGRE  master
Object-Oriented Graphics Rendering Engine
Ogre::Particle Class Reference

Class representing a single particle instance. More...

#include <OgreParticle.h>

+ Inheritance diagram for Ogre::Particle:

Public Types

enum  ParticleType : uint8 { Visual, Emitter }
 Type of particle. More...
 

Public Member Functions

 Particle ()
 
float getOwnHeight (void) const
 Retrieves the particle's personal width, if hasOwnDimensions is true. More...
 
float getOwnWidth (void) const
 Retrieves the particle's personal width, if hasOwnDimensions is true. More...
 
const RadiangetRotation (void) const
 
bool hasOwnDimensions (void) const
 
void setDimensions (float width, float height)
 Sets the width and height for this particle. More...
 
void setRotation (const Radian &rad)
 Sets the current rotation. More...
 

Public Attributes

RGBA mColour
 Current colour. More...
 
Vector3 mDirection
 Direction (and speed) More...
 
float mHeight
 Particle height. More...
 
ParticleType mParticleType
 Determines the type of particle. More...
 
Vector3 mPosition
 World position. More...
 
uint8 mRandomTexcoordOffset
 
Radian mRotation
 Current rotation value. More...
 
Radian mRotationSpeed
 Speed of rotation in radians/sec. More...
 
uint8 mTexcoordIndex
 Index into the array of texture coordinates. More...
 
float mTimeToLive
 Time to live, number of seconds left of particles natural life. More...
 
float mTotalTimeToLive
 Total Time to live, number of seconds of particles natural life. More...
 
float mWidth
 Particle width. More...
 

Detailed Description

Class representing a single particle instance.

Member Enumeration Documentation

◆ ParticleType

Type of particle.

Enumerator
Visual 
Emitter 

Constructor & Destructor Documentation

◆ Particle()

Ogre::Particle::Particle ( )
inline

Member Function Documentation

◆ setDimensions()

void Ogre::Particle::setDimensions ( float  width,
float  height 
)
inline

Sets the width and height for this particle.

Referenced by Ogre::ParticleEmitter::_initParticle().

◆ hasOwnDimensions()

bool Ogre::Particle::hasOwnDimensions ( void  ) const
inline
Deprecated:
do not use

◆ getOwnWidth()

float Ogre::Particle::getOwnWidth ( void  ) const
inline

Retrieves the particle's personal width, if hasOwnDimensions is true.

◆ getOwnHeight()

float Ogre::Particle::getOwnHeight ( void  ) const
inline

Retrieves the particle's personal width, if hasOwnDimensions is true.

◆ setRotation()

void Ogre::Particle::setRotation ( const Radian rad)
inline

Sets the current rotation.

◆ getRotation()

const Radian& Ogre::Particle::getRotation ( void  ) const
inline

Member Data Documentation

◆ mWidth

float Ogre::Particle::mWidth

Particle width.

◆ mHeight

float Ogre::Particle::mHeight

Particle height.

◆ mRotation

Radian Ogre::Particle::mRotation

Current rotation value.

◆ mPosition

Vector3 Ogre::Particle::mPosition

World position.

◆ mDirection

Vector3 Ogre::Particle::mDirection

Direction (and speed)

◆ mColour

RGBA Ogre::Particle::mColour

Current colour.

◆ mTimeToLive

float Ogre::Particle::mTimeToLive

Time to live, number of seconds left of particles natural life.

◆ mTotalTimeToLive

float Ogre::Particle::mTotalTimeToLive

Total Time to live, number of seconds of particles natural life.

◆ mRotationSpeed

Radian Ogre::Particle::mRotationSpeed

Speed of rotation in radians/sec.

◆ mParticleType

ParticleType Ogre::Particle::mParticleType

Determines the type of particle.

◆ mTexcoordIndex

uint8 Ogre::Particle::mTexcoordIndex

Index into the array of texture coordinates.

See also
BillboardSet::setTextureStacksAndSlices()

◆ mRandomTexcoordOffset

uint8 Ogre::Particle::mRandomTexcoordOffset

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