cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PUBillboardChain Class Reference

#include <CCPUBillboardChain.h>

Inheritance diagram for PUBillboardChain:
PURibbonTrail

Classes

struct  ChainSegment
 Simple struct defining a chain segment by referencing a subset of the preallocated buffer (which will be mMaxElementsPerChain * mChainCount long), by it's chain index, and a head and tail value which describe the current chain. More...
 
class  Element
 Contains the data of an element of the BillboardChain. More...
 
struct  VertexInfo
 

Public Types

enum  TexCoordDirection { TCD_U, TCD_V }
 The direction in which texture coordinates from elements of the chain are used. More...
 
typedef std::vector< ElementElementList

Public Member Functions

 PUBillboardChain (const std::string &name, const std::string &texFile="", size_t maxElements=20, size_t numberOfChains=1, bool useTextureCoords=true, bool useColours=true, bool dynamic=true)
 Constructor. More...
 
 PUBillboardChain ( var name, var 20, var 1, var true, var true, var true)
 Constructor. More...
 
 PUBillboardChain ( local name, local 20, local 1, local true, local true, local true)
 Constructor. More...
 
virtual ~PUBillboardChain ()
 destructor More...
 
virtual void setMaxChainElements (size_t maxElements)
 Set the maximum number of chain elements per chain. More...
 
virtual size_t getMaxChainElements (void) const
 Get the maximum number of chain elements per chain. More...
 
virtual void setNumberOfChains (size_t numChains)
 Set the number of chain segments (this class can render multiple chains at once using the same material). More...
 
virtual size_t getNumberOfChains (void) const
 Get the number of chain segments (this class can render multiple chains at once using the same material). More...
 
virtual void setUseTextureCoords (bool use)
 Sets whether texture coordinate information should be included in the final buffers generated. More...
 
virtual bool getUseTextureCoords (void) const
 Gets whether texture coordinate information should be included in the final buffers generated. More...
 
var getUseTextureCoords ()
 Gets whether texture coordinate information should be included in the final buffers generated. More...
 
local getUseTextureCoords ()
 Gets whether texture coordinate information should be included in the final buffers generated. More...
 
virtual void setTextureCoordDirection (TexCoordDirection dir)
 Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain. More...
 
virtual TexCoordDirection getTextureCoordDirection (void)
 Gets the direction in which texture coords specified on each element are deemed to run. More...
 
local getTextureCoordDirection ()
 Gets the direction in which texture coords specified on each element are deemed to run. More...
 
virtual void setOtherTextureCoordRange (float start, float end)
 Set the range of the texture coordinates generated across the width of the chain elements. More...
 
virtual const float * getOtherTextureCoordRange (void) const
 Get the range of the texture coordinates generated across the width of the chain elements. More...
 
virtual void setUseVertexColours (bool use)
 Sets whether vertex colour information should be included in the final buffers generated. More...
 
virtual bool getUseVertexColours (void) const
 Gets whether vertex colour information should be included in the final buffers generated. More...
 
virtual void setDynamic (bool dyn)
 Sets whether or not the buffers created for this object are suitable for dynamic alteration. More...
 
virtual bool getDynamic (void) const
 Gets whether or not the buffers created for this object are suitable for dynamic alteration. More...
 
virtual void addChainElement (size_t chainIndex, const Element &billboardChainElement)
 Add an element to the 'head' of a chain. More...
 
local addChainElement ( local chainIndex, local billboardChainElement)
 Add an element to the 'head' of a chain. More...
 
virtual void removeChainElement (size_t chainIndex)
 Remove an element from the 'tail' of a chain. More...
 
virtual void updateChainElement (size_t chainIndex, size_t elementIndex, const Element &billboardChainElement)
 Update the details of an existing chain element. More...
 
var updateChainElement ( var chainIndex, var elementIndex, var billboardChainElement)
 Update the details of an existing chain element. More...
 
local updateChainElement ( local chainIndex, local elementIndex, local billboardChainElement)
 Update the details of an existing chain element. More...
 
virtual const ElementgetChainElement (size_t chainIndex, size_t elementIndex) const
 Get the detail of a chain element. More...
 
local getChainElement ( local chainIndex, local elementIndex)
 Get the detail of a chain element. More...
 
virtual size_t getNumChainElements (size_t chainIndex) const
 Returns the number of chain elements. More...
 
virtual void clearChain (size_t chainIndex)
 Remove all elements of a given chain (but leave the chain intact). More...
 
virtual void clearAllChains (void)
 Remove all elements from all chains (but leave the chains themselves intact). More...
 
void setFaceCamera (bool faceCamera, const Vec3 &normalVector=Vec3::UNIT_X)
 Sets whether the billboard should always be facing the camera or a custom direction set by each point element. More...
 
virtual void setDepthTest (bool isDepthTest)
virtual void setDepthWrite (bool isDepthWrite)
void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem)

Protected Types

typedef std::vector< ChainSegmentChainSegmentList

Protected Member Functions

virtual void setupChainContainers (void)
 
virtual void setupVertexDeclaration (void)
 Setup vertex declaration. More...
 
virtual void setupBuffers (void)
virtual void updateVertexBuffer (const Mat4 &camMat)
 Update the contents of the vertex buffer. More...
 
local updateVertexBuffer ( local camMat)
 Update the contents of the vertex buffer. More...
 
virtual void updateIndexBuffer (void)
 Update the contents of the index buffer. More...
 
void init (const std::string &texFile)

Protected Attributes

size_t _maxElementsPerChain
 Maximum length of each chain. More...
 
size_t _chainCount
 Number of chains. More...
 
bool _useTexCoords
 Use texture coords? More...
 
bool _useVertexColour
 Use vertex colour? More...
 
var _useVertexColour
 Use vertex colour? More...
 
local _useVertexColour
 Use vertex colour? More...
 
bool _dynamic
 Dynamic use? More...
 
bool _vertexDeclDirty
 Is the vertex declaration dirty? More...
 
bool _buffersNeedRecreating
 Do the buffers need recreating? More...
 
bool _boundsDirty
 Do the bounds need redefining? More...
 
bool _indexContentDirty
 Is the index buffer dirty? More...
 
var _indexContentDirty
 Is the index buffer dirty? More...
 
local _indexContentDirty
 Is the index buffer dirty? More...
 
bool _vertexContentDirty
 Is the vertex buffer dirty? More...
 
TexCoordDirection _texCoordDir
 Texture coord direction. More...
 
float _otherTexCoordRange [2]
 Other texture coord range. More...
 
bool _faceCamera
 When true, the billboards always face the camera. More...
 
Vec3 _normalBase
 Used when mFaceCamera == false; determines the billboard's "normal". More...
 
ElementList _chainElementList
 The list holding the chain elements. More...
 
ChainSegmentList _chainSegmentList
MeshCommand_meshCommand
Texture2D_texture
GLProgramState_glProgramState
IndexBuffer_indexBuffer
VertexBuffer_vertexBuffer
std::vector< VertexInfo_vertices
var _vertices
local _vertices
std::vector< unsigned short > _indices

Static Protected Attributes

static const size_t SEGMENT_EMPTY
 Chain segment has no elements. More...
 

Member Typedef Documentation

typedef std::vector
<ChainSegment>
ChainSegmentList
protected
var ChainSegmentList
protected
local ChainSegmentList
protected
typedef std::vector<Element>
ElementList
local ElementList

Member Enumeration Documentation

The direction in which texture coordinates from elements of the chain are used.

Enumerator
TCD_U 

Tex coord in elements is treated as the 'u' texture coordinate.

TCD_V 

Tex coord in elements is treated as the 'v' texture coordinate.

The direction in which texture coordinates from elements of the chain are used.

Enumerator
TCD_U 

Tex coord in elements is treated as the 'u' texture coordinate.

TCD_V 

Tex coord in elements is treated as the 'v' texture coordinate.

The direction in which texture coordinates from elements of the chain are used.

Enumerator
TCD_U 

Tex coord in elements is treated as the 'u' texture coordinate.

TCD_V 

Tex coord in elements is treated as the 'v' texture coordinate.

Constructor & Destructor Documentation

PUBillboardChain ( const std::string &  name,
const std::string &  texFile = "",
size_t  maxElements = 20,
size_t  numberOfChains = 1,
bool  useTextureCoords = true,
bool  useColours = true,
bool  dynamic = true 
)

Constructor.

Parameters
nameThe name to give this object
maxElementsThe maximum number of elements per chain
numberOfChainsThe number of separate chain segments contained in this object
useTextureCoordsIf true, use texture coordinates from the chain elements
useVertexColoursIf true, use vertex colours from the chain elements
dynamicIf true, buffers are created with the intention of being updated
var PUBillboardChain ( var  name,
var  texFile = "",
var  maxElements = 20,
var  numberOfChains = 1,
var  useTextureCoords = true,
var  useColours = true,
var  dynamic = true 
)

Constructor.

Parameters
nameThe name to give this object
maxElementsThe maximum number of elements per chain
numberOfChainsThe number of separate chain segments contained in this object
useTextureCoordsIf true, use texture coordinates from the chain elements
useVertexColoursIf true, use vertex colours from the chain elements
dynamicIf true, buffers are created with the intention of being updated
local PUBillboardChain ( local  name,
local  texFile = "",
local  maxElements = 20,
local  numberOfChains = 1,
local  useTextureCoords = true,
local  useColours = true,
local  dynamic = true 
)

Constructor.

Parameters
nameThe name to give this object
maxElementsThe maximum number of elements per chain
numberOfChainsThe number of separate chain segments contained in this object
useTextureCoordsIf true, use texture coordinates from the chain elements
useVertexColoursIf true, use vertex colours from the chain elements
dynamicIf true, buffers are created with the intention of being updated
virtual ~PUBillboardChain ( )
virtual

destructor

var ~PUBillboardChain ( )
virtual

destructor

local ~PUBillboardChain ( )
virtual

destructor

Member Function Documentation

virtual void addChainElement ( size_t  chainIndex,
const Element billboardChainElement 
)
virtual

Add an element to the 'head' of a chain.

Remarks
If this causes the number of elements to exceed the maximum elements per chain, the last element in the chain (the 'tail') will be removed to allow the additional element to be added.
Parameters
chainIndexThe index of the chain
billboardChainElementThe details to add
var addChainElement ( var  chainIndex,
var  billboardChainElement 
)
virtual

Add an element to the 'head' of a chain.

Remarks
If this causes the number of elements to exceed the maximum elements per chain, the last element in the chain (the 'tail') will be removed to allow the additional element to be added.
Parameters
chainIndexThe index of the chain
billboardChainElementThe details to add
local addChainElement ( local  chainIndex,
local  billboardChainElement 
)
virtual

Add an element to the 'head' of a chain.

Remarks
If this causes the number of elements to exceed the maximum elements per chain, the last element in the chain (the 'tail') will be removed to allow the additional element to be added.
Parameters
chainIndexThe index of the chain
billboardChainElementThe details to add
virtual void clearAllChains ( void  )
virtual

Remove all elements from all chains (but leave the chains themselves intact).

var clearAllChains (   )
virtual

Remove all elements from all chains (but leave the chains themselves intact).

local clearAllChains (   )
virtual

Remove all elements from all chains (but leave the chains themselves intact).

virtual void clearChain ( size_t  chainIndex)
virtual

Remove all elements of a given chain (but leave the chain intact).

Reimplemented in PURibbonTrail.

var clearChain ( var  chainIndex)
virtual

Remove all elements of a given chain (but leave the chain intact).

Reimplemented in PURibbonTrail.

local clearChain ( local  chainIndex)
virtual

Remove all elements of a given chain (but leave the chain intact).

Reimplemented in PURibbonTrail.

virtual const Element&
getChainElement
( size_t  chainIndex,
size_t  elementIndex 
) const
virtual

Get the detail of a chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
var getChainElement ( var  chainIndex,
var  elementIndex 
)
virtual

Get the detail of a chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
local getChainElement ( local  chainIndex,
local  elementIndex 
)
virtual

Get the detail of a chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
virtual bool getDynamic ( void  ) const
inlinevirtual

Gets whether or not the buffers created for this object are suitable for dynamic alteration.

var getDynamic (   )
inlinevirtual

Gets whether or not the buffers created for this object are suitable for dynamic alteration.

local getDynamic (   )
inlinevirtual

Gets whether or not the buffers created for this object are suitable for dynamic alteration.

virtual size_t getMaxChainElements ( void  ) const
inlinevirtual

Get the maximum number of chain elements per chain.

var getMaxChainElements (   )
inlinevirtual

Get the maximum number of chain elements per chain.

local getMaxChainElements (   )
inlinevirtual

Get the maximum number of chain elements per chain.

virtual size_t getNumberOfChains ( void  ) const
inlinevirtual

Get the number of chain segments (this class can render multiple chains at once using the same material).

var getNumberOfChains (   )
inlinevirtual

Get the number of chain segments (this class can render multiple chains at once using the same material).

local getNumberOfChains (   )
inlinevirtual

Get the number of chain segments (this class can render multiple chains at once using the same material).

virtual size_t getNumChainElements ( size_t  chainIndex) const
virtual

Returns the number of chain elements.

var getNumChainElements ( var  chainIndex)
virtual

Returns the number of chain elements.

local getNumChainElements ( local  chainIndex)
virtual

Returns the number of chain elements.

virtual const float*
getOtherTextureCoordRange
( void  ) const
inlinevirtual

Get the range of the texture coordinates generated across the width of the chain elements.

var getOtherTextureCoordRange (   )
inlinevirtual

Get the range of the texture coordinates generated across the width of the chain elements.

local getOtherTextureCoordRange (   )
inlinevirtual

Get the range of the texture coordinates generated across the width of the chain elements.

virtual TexCoordDirection
getTextureCoordDirection
( void  )
inlinevirtual

Gets the direction in which texture coords specified on each element are deemed to run.

var getTextureCoordDirection (   )
inlinevirtual

Gets the direction in which texture coords specified on each element are deemed to run.

local getTextureCoordDirection (   )
inlinevirtual

Gets the direction in which texture coords specified on each element are deemed to run.

virtual bool getUseTextureCoords ( void  ) const
inlinevirtual

Gets whether texture coordinate information should be included in the final buffers generated.

var getUseTextureCoords (   )
inlinevirtual

Gets whether texture coordinate information should be included in the final buffers generated.

local getUseTextureCoords (   )
inlinevirtual

Gets whether texture coordinate information should be included in the final buffers generated.

virtual bool getUseVertexColours ( void  ) const
inlinevirtual

Gets whether vertex colour information should be included in the final buffers generated.

var getUseVertexColours (   )
inlinevirtual

Gets whether vertex colour information should be included in the final buffers generated.

local getUseVertexColours (   )
inlinevirtual

Gets whether vertex colour information should be included in the final buffers generated.

void init ( const std::string &  texFile)
protected
var init ( var  texFile)
protected
local init ( local  texFile)
protected
virtual void removeChainElement ( size_t  chainIndex)
virtual

Remove an element from the 'tail' of a chain.

Parameters
chainIndexThe index of the chain
var removeChainElement ( var  chainIndex)
virtual

Remove an element from the 'tail' of a chain.

Parameters
chainIndexThe index of the chain
local removeChainElement ( local  chainIndex)
virtual

Remove an element from the 'tail' of a chain.

Parameters
chainIndexThe index of the chain
void render ( Renderer renderer,
const Mat4 transform,
ParticleSystem3D particleSystem 
)
var render ( var  renderer,
var  transform,
var  particleSystem 
)
local render ( local  renderer,
local  transform,
local  particleSystem 
)
virtual void setDepthTest ( bool  isDepthTest)
virtual
var setDepthTest ( var  isDepthTest)
virtual
local setDepthTest ( local  isDepthTest)
virtual
virtual void setDepthWrite ( bool  isDepthWrite)
virtual
var setDepthWrite ( var  isDepthWrite)
virtual
local setDepthWrite ( local  isDepthWrite)
virtual
virtual void setDynamic ( bool  dyn)
virtual

Sets whether or not the buffers created for this object are suitable for dynamic alteration.

var setDynamic ( var  dyn)
virtual

Sets whether or not the buffers created for this object are suitable for dynamic alteration.

local setDynamic ( local  dyn)
virtual

Sets whether or not the buffers created for this object are suitable for dynamic alteration.

void setFaceCamera ( bool  faceCamera,
const Vec3 normalVector = Vec3::UNIT_X 
)

Sets whether the billboard should always be facing the camera or a custom direction set by each point element.

Remarks
Billboards facing the camera are useful for smoke trails, light beams, etc by simulating a cylinder. However, because of this property, wide trails can cause several artefacts unless the head is properly covered. Therefore, non-camera-facing billboards are much more convenient for leaving big trails of movement from thin objects, for example a sword swing as seen in many fighting games.
Parameters
faceCameraTrue to be always facing the camera (Default value: True)
normalVectorOnly used when faceCamera == false. Must be a non-zero vector. This vector is the "point of reference" for each point orientation. For example, if normalVector is Vector3::UNIT_Z, and the point's orientation is an identity matrix, the segment corresponding to that point will be facing towards UNIT_Z This vector is internally normalized.
var setFaceCamera ( var  faceCamera,
var  normalVector = Vec3::UNIT_X 
)

Sets whether the billboard should always be facing the camera or a custom direction set by each point element.

Remarks
Billboards facing the camera are useful for smoke trails, light beams, etc by simulating a cylinder. However, because of this property, wide trails can cause several artefacts unless the head is properly covered. Therefore, non-camera-facing billboards are much more convenient for leaving big trails of movement from thin objects, for example a sword swing as seen in many fighting games.
Parameters
faceCameraTrue to be always facing the camera (Default value: True)
normalVectorOnly used when faceCamera == false. Must be a non-zero vector. This vector is the "point of reference" for each point orientation. For example, if normalVector is Vector3::UNIT_Z, and the point's orientation is an identity matrix, the segment corresponding to that point will be facing towards UNIT_Z This vector is internally normalized.
local setFaceCamera ( local  faceCamera,
local  normalVector = Vec3::UNIT_X 
)

Sets whether the billboard should always be facing the camera or a custom direction set by each point element.

Remarks
Billboards facing the camera are useful for smoke trails, light beams, etc by simulating a cylinder. However, because of this property, wide trails can cause several artefacts unless the head is properly covered. Therefore, non-camera-facing billboards are much more convenient for leaving big trails of movement from thin objects, for example a sword swing as seen in many fighting games.
Parameters
faceCameraTrue to be always facing the camera (Default value: True)
normalVectorOnly used when faceCamera == false. Must be a non-zero vector. This vector is the "point of reference" for each point orientation. For example, if normalVector is Vector3::UNIT_Z, and the point's orientation is an identity matrix, the segment corresponding to that point will be facing towards UNIT_Z This vector is internally normalized.
virtual void setMaxChainElements ( size_t  maxElements)
virtual

Set the maximum number of chain elements per chain.

Reimplemented in PURibbonTrail.

var setMaxChainElements ( var  maxElements)
virtual

Set the maximum number of chain elements per chain.

Reimplemented in PURibbonTrail.

local setMaxChainElements ( local  maxElements)
virtual

Set the maximum number of chain elements per chain.

Reimplemented in PURibbonTrail.

virtual void setNumberOfChains ( size_t  numChains)
virtual

Set the number of chain segments (this class can render multiple chains at once using the same material).

Reimplemented in PURibbonTrail.

var setNumberOfChains ( var  numChains)
virtual

Set the number of chain segments (this class can render multiple chains at once using the same material).

Reimplemented in PURibbonTrail.

local setNumberOfChains ( local  numChains)
virtual

Set the number of chain segments (this class can render multiple chains at once using the same material).

Reimplemented in PURibbonTrail.

virtual void
setOtherTextureCoordRange
( float  start,
float  end 
)
virtual

Set the range of the texture coordinates generated across the width of the chain elements.

Parameters
startStart coordinate, default 0.0
endEnd coordinate, default 1.0
var setOtherTextureCoordRange ( var  start,
var  end 
)
virtual

Set the range of the texture coordinates generated across the width of the chain elements.

Parameters
startStart coordinate, default 0.0
endEnd coordinate, default 1.0
local setOtherTextureCoordRange ( local  start,
local  end 
)
virtual

Set the range of the texture coordinates generated across the width of the chain elements.

Parameters
startStart coordinate, default 0.0
endEnd coordinate, default 1.0
virtual void
setTextureCoordDirection
( TexCoordDirection  dir)
virtual

Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.

Parameters
dirThe direction, default is TCD_U.
var setTextureCoordDirection ( var  dir)
virtual

Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.

Parameters
dirThe direction, default is TCD_U.
local setTextureCoordDirection ( local  dir)
virtual

Sets the direction in which texture coords specified on each element are deemed to run along the length of the chain.

Parameters
dirThe direction, default is TCD_U.
virtual void setupBuffers ( void  )
protectedvirtual
var setupBuffers (   )
protectedvirtual
local setupBuffers (   )
protectedvirtual
virtual void setupChainContainers ( void  )
protectedvirtual

Setup the STL collections

var setupChainContainers (   )
protectedvirtual

Setup the STL collections

local setupChainContainers (   )
protectedvirtual

Setup the STL collections

virtual void setupVertexDeclaration ( void  )
protectedvirtual

Setup vertex declaration.

var setupVertexDeclaration (   )
protectedvirtual

Setup vertex declaration.

local setupVertexDeclaration (   )
protectedvirtual

Setup vertex declaration.

virtual void setUseTextureCoords ( bool  use)
virtual

Sets whether texture coordinate information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
var setUseTextureCoords ( var  use)
virtual

Sets whether texture coordinate information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
local setUseTextureCoords ( local  use)
virtual

Sets whether texture coordinate information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
virtual void setUseVertexColours ( bool  use)
virtual

Sets whether vertex colour information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
var setUseVertexColours ( var  use)
virtual

Sets whether vertex colour information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
local setUseVertexColours ( local  use)
virtual

Sets whether vertex colour information should be included in the final buffers generated.

Note
You must use either texture coordinates or vertex colour since the vertices have no normals and without one of these there is no source of colour for the vertices.
virtual void updateChainElement ( size_t  chainIndex,
size_t  elementIndex,
const Element billboardChainElement 
)
virtual

Update the details of an existing chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
billboardChainElementThe details to set
var updateChainElement ( var  chainIndex,
var  elementIndex,
var  billboardChainElement 
)
virtual

Update the details of an existing chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
billboardChainElementThe details to set
local updateChainElement ( local  chainIndex,
local  elementIndex,
local  billboardChainElement 
)
virtual

Update the details of an existing chain element.

Parameters
chainIndexThe index of the chain
elementIndexThe element index within the chain, measured from the 'head' of the chain
billboardChainElementThe details to set
virtual void updateIndexBuffer ( void  )
protectedvirtual

Update the contents of the index buffer.

var updateIndexBuffer (   )
protectedvirtual

Update the contents of the index buffer.

local updateIndexBuffer (   )
protectedvirtual

Update the contents of the index buffer.

virtual void updateVertexBuffer ( const Mat4 camMat)
protectedvirtual

Update the contents of the vertex buffer.

var updateVertexBuffer ( var  camMat)
protectedvirtual

Update the contents of the vertex buffer.

local updateVertexBuffer ( local  camMat)
protectedvirtual

Update the contents of the vertex buffer.

Member Data Documentation

bool _boundsDirty
mutableprotected

Do the bounds need redefining?

var _boundsDirty
mutableprotected

Do the bounds need redefining?

local _boundsDirty
mutableprotected

Do the bounds need redefining?

bool _buffersNeedRecreating
protected

Do the buffers need recreating?

var _buffersNeedRecreating
protected

Do the buffers need recreating?

local _buffersNeedRecreating
protected

Do the buffers need recreating?

size_t _chainCount
protected

Number of chains.

var _chainCount
protected

Number of chains.

local _chainCount
protected

Number of chains.

ElementList _chainElementList
protected

The list holding the chain elements.

var _chainElementList
protected

The list holding the chain elements.

local _chainElementList
protected

The list holding the chain elements.

ChainSegmentList _chainSegmentList
protected
var _chainSegmentList
protected
local _chainSegmentList
protected
bool _dynamic
protected

Dynamic use?

var _dynamic
protected

Dynamic use?

local _dynamic
protected

Dynamic use?

bool _faceCamera
protected

When true, the billboards always face the camera.

var _faceCamera
protected

When true, the billboards always face the camera.

local _faceCamera
protected

When true, the billboards always face the camera.

GLProgramState* _glProgramState
protected
var _glProgramState
protected
local _glProgramState
protected
IndexBuffer* _indexBuffer
protected
var _indexBuffer
protected
local _indexBuffer
protected
bool _indexContentDirty
protected

Is the index buffer dirty?

var _indexContentDirty
protected

Is the index buffer dirty?

local _indexContentDirty
protected

Is the index buffer dirty?

std::vector<unsigned short>
_indices
protected
var _indices
protected
local _indices
protected
size_t _maxElementsPerChain
protected

Maximum length of each chain.

MeshCommand* _meshCommand
protected
var _meshCommand
protected
local _meshCommand
protected
Vec3 _normalBase
protected

Used when mFaceCamera == false; determines the billboard's "normal".

i.e. when the orientation is identity, the billboard is perpendicular to this vector

var _normalBase
protected

Used when mFaceCamera == false; determines the billboard's "normal".

i.e. when the orientation is identity, the billboard is perpendicular to this vector

local _normalBase
protected

Used when mFaceCamera == false; determines the billboard's "normal".

i.e. when the orientation is identity, the billboard is perpendicular to this vector

float _otherTexCoordRange[2]
protected

Other texture coord range.

float _otherTexCoordRange[2]
protected

Other texture coord range.

float _otherTexCoordRange[2]
protected

Other texture coord range.

TexCoordDirection _texCoordDir
protected

Texture coord direction.

var _texCoordDir
protected

Texture coord direction.

local _texCoordDir
protected

Texture coord direction.

Texture2D* _texture
protected
var _texture
protected
local _texture
protected
bool _useTexCoords
protected

Use texture coords?

var _useTexCoords
protected

Use texture coords?

local _useTexCoords
protected

Use texture coords?

bool _useVertexColour
protected

Use vertex colour?

var _useVertexColour
protected

Use vertex colour?

local _useVertexColour
protected

Use vertex colour?

VertexBuffer* _vertexBuffer
protected
var _vertexBuffer
protected
local _vertexBuffer
protected
bool _vertexContentDirty
protected

Is the vertex buffer dirty?

var _vertexContentDirty
protected

Is the vertex buffer dirty?

local _vertexContentDirty
protected

Is the vertex buffer dirty?

bool _vertexDeclDirty
protected

Is the vertex declaration dirty?

var _vertexDeclDirty
protected

Is the vertex declaration dirty?

local _vertexDeclDirty
protected

Is the vertex declaration dirty?

std::vector<VertexInfo> _vertices
protected
var _vertices
protected
local _vertices
protected
const size_t SEGMENT_EMPTY
staticprotected

Chain segment has no elements.

var SEGMENT_EMPTY
staticprotected

Chain segment has no elements.

local SEGMENT_EMPTY
staticprotected

Chain segment has no elements.


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