OGRE-Next 4.0.0unstable
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::ParticleCpuData Struct Reference

#include <OgreParticle2.h>

Public Member Functions

void advancePack (size_t numAdvance=1u)

Public Attributes

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

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.

Referenced by advancePack().

◆ mDimensions

ArrayVector2* RESTRICT_ALIAS Ogre::ParticleCpuData::mDimensions

Width & Height.

Referenced by advancePack().

◆ mDirection

ArrayVector3* RESTRICT_ALIAS Ogre::ParticleCpuData::mDirection

Direction (and speed).

Referenced by advancePack().

◆ 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.

Referenced by advancePack().

◆ mRotation

ArrayRadian* RESTRICT_ALIAS Ogre::ParticleCpuData::mRotation

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

Referenced by advancePack().

◆ mRotationSpeed

ArrayRadian* RESTRICT_ALIAS ogre_nullable Ogre::ParticleCpuData::mRotationSpeed

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

Referenced by advancePack().

◆ 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.

Referenced by advancePack().

◆ 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.

Referenced by advancePack().


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