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

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

#include <CCPUBillboardChain.h>

Public Attributes

size_t start
 The start of this chains subset of the buffer. More...
 
var start
 The start of this chains subset of the buffer. More...
 
local start
 The start of this chains subset of the buffer. More...
 
size_t head
 The 'head' of the chain, relative to start. More...
 
size_t tail
 The 'tail' of the chain, relative to start. More...
 
var tail
 The 'tail' of the chain, relative to start. More...
 
local tail
 The 'tail' of the chain, relative to start. More...
 

Detailed Description

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.

The buffer subset wraps at mMaxElementsPerChain so that head and tail can move freely. head and tail are inclusive, when the chain is empty head and tail are filled with high-values.

Member Data Documentation

size_t head

The 'head' of the chain, relative to start.

var head

The 'head' of the chain, relative to start.

local head

The 'head' of the chain, relative to start.

size_t start

The start of this chains subset of the buffer.

var start

The start of this chains subset of the buffer.

local start

The start of this chains subset of the buffer.

size_t tail

The 'tail' of the chain, relative to start.

var tail

The 'tail' of the chain, relative to start.

local tail

The 'tail' of the chain, relative to start.


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