OGRE-Next  4.0.0unstable
Object-Oriented Graphics Rendering Engine
Ogre::ParticleCpuData Struct Reference

#include <OgreParticle2.h>

Public Member Functions

void advancePack (size_t numAdvance=1u)
 

Public Attributes

ArrayVector4 *RESTRICT_ALIAS mColour
 Current colour. More...
 
ArrayVector2 *RESTRICT_ALIAS mDimensions
 Width & Height. More...
 
ArrayVector3 *RESTRICT_ALIAS mDirection
 Direction (and speed). More...
 
uint8 mIndex
 Which of the packed values is ours. Value in range [0; 4) for SSE2. More...
 
ArrayVector3 *RESTRICT_ALIAS mPosition
 World position. More...
 
ArrayRadian *RESTRICT_ALIAS mRotation
 Current rotation value. MUST be kept in range [-PI; PI]. More...
 
ArrayRadian *RESTRICT_ALIAS ogre_nullable mRotationSpeed
 Speed of rotation in radians/sec. It is nullptr for BillboardSet2. More...
 
ArrayReal *RESTRICT_ALIAS mTimeToLive
 Time left to live, number of seconds left of particles natural life. More...
 
ArrayReal *RESTRICT_ALIAS ogre_nullable mTotalTimeToLive
 Time to live, number of seconds left of particles natural life It is nullptr for BillboardSet2. More...
 

Member Function Documentation

◆ advancePack()

void Ogre::ParticleCpuData::advancePack ( size_t  numAdvance = 1u)
inline

Member Data Documentation

◆ mColour

ArrayVector4* RESTRICT_ALIAS Ogre::ParticleCpuData::mColour

Current colour.

◆ mDimensions

ArrayVector2* RESTRICT_ALIAS Ogre::ParticleCpuData::mDimensions

Width & Height.

◆ mDirection

ArrayVector3* RESTRICT_ALIAS Ogre::ParticleCpuData::mDirection

Direction (and speed).

◆ mIndex

uint8 Ogre::ParticleCpuData::mIndex

Which of the packed values is ours. Value in range [0; 4) for SSE2.

◆ mPosition

ArrayVector3* RESTRICT_ALIAS Ogre::ParticleCpuData::mPosition

World position.

◆ mRotation

ArrayRadian* RESTRICT_ALIAS Ogre::ParticleCpuData::mRotation

Current rotation value. MUST be kept in range [-PI; PI].

◆ mRotationSpeed

ArrayRadian* RESTRICT_ALIAS ogre_nullable Ogre::ParticleCpuData::mRotationSpeed

Speed of rotation in radians/sec. It is nullptr for BillboardSet2.

◆ mTimeToLive

ArrayReal* RESTRICT_ALIAS Ogre::ParticleCpuData::mTimeToLive

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

It does when it's 0. It's a valid ptr even for BillboardSet2 because that's how we can tell apart unallocated particles.

◆ mTotalTimeToLive

ArrayReal* RESTRICT_ALIAS ogre_nullable Ogre::ParticleCpuData::mTotalTimeToLive

Time to live, number of seconds left of particles natural life It is nullptr for BillboardSet2.


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