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

#include <CCVertexIndexBuffer.h>

Inheritance diagram for VertexBuffer:
Ref

Public Member Functions

int getSizePerVertex () const
int getVertexNumber () const
bool updateVertices (const void *verts, int count, int begin)
local updateVertices ( local verts, local count, local begin)
int getSize () const
GLuint getVBO () const
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static VertexBuffercreate (int sizePerVertex, int vertexNumber, GLenum usage=GL_STATIC_DRAW)
static bool isShadowCopyEnabled ()
static void enableShadowCopy (bool enabled)
var enableShadowCopy ( var enabled)
local enableShadowCopy ( local enabled)

Protected Member Functions

 VertexBuffer ()
virtual ~VertexBuffer ()
local ~VertexBuffer ()
bool init (int sizePerVertex, int vertexNumber, GLenum usage=GL_STATIC_DRAW)
var init ( var sizePerVertex, var vertexNumber, var GL_STATIC_DRAW)
local init ( local sizePerVertex, local vertexNumber, local GL_STATIC_DRAW)
void recreateVBO () const
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Protected Attributes

EventListenerCustom_recreateVBOEventListener
var _recreateVBOEventListener
local _recreateVBOEventListener
GLuint _vbo
int _sizePerVertex
int _vertexNumber
std::vector< unsigned char > _shadowCopy
var _shadowCopy
local _shadowCopy
GLenum _usage
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
var _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Static Protected Attributes

static bool _enableShadowCopy
var _enableShadowCopy
local _enableShadowCopy

Constructor & Destructor Documentation

VertexBuffer ( )
protected
var VertexBuffer ( )
protected
local VertexBuffer ( )
protected
virtual ~VertexBuffer ( )
protectedvirtual
var ~VertexBuffer ( )
protectedvirtual
local ~VertexBuffer ( )
protectedvirtual

Member Function Documentation

static VertexBuffer* create ( int  sizePerVertex,
int  vertexNumber,
GLenum  usage = GL_STATIC_DRAW 
)
static
var create ( var  sizePerVertex,
var  vertexNumber,
var  usage = GL_STATIC_DRAW 
)
static
local create ( local  sizePerVertex,
local  vertexNumber,
local  usage = GL_STATIC_DRAW 
)
static
static void enableShadowCopy ( bool  enabled)
inlinestatic
var enableShadowCopy ( var  enabled)
inlinestatic
local enableShadowCopy ( local  enabled)
inlinestatic
int getSize ( ) const
var getSize ( )
local getSize ( )
int getSizePerVertex ( ) const
var getSizePerVertex ( )
local getSizePerVertex ( )
GLuint getVBO ( ) const
var getVBO ( )
local getVBO ( )
int getVertexNumber ( ) const
var getVertexNumber ( )
local getVertexNumber ( )
bool init ( int  sizePerVertex,
int  vertexNumber,
GLenum  usage = GL_STATIC_DRAW 
)
protected
var init ( var  sizePerVertex,
var  vertexNumber,
var  usage = GL_STATIC_DRAW 
)
protected
local init ( local  sizePerVertex,
local  vertexNumber,
local  usage = GL_STATIC_DRAW 
)
protected
static bool isShadowCopyEnabled ( )
inlinestatic
var isShadowCopyEnabled ( )
inlinestatic
local isShadowCopyEnabled ( )
inlinestatic
void recreateVBO ( ) const
protected
var recreateVBO ( )
protected
local recreateVBO ( )
protected
bool updateVertices ( const void *  verts,
int  count,
int  begin 
)
var updateVertices ( var  verts,
var  count,
var  begin 
)
local updateVertices ( local  verts,
local  count,
local  begin 
)

Member Data Documentation

bool _enableShadowCopy
staticprotected
var _enableShadowCopy
staticprotected
local _enableShadowCopy
staticprotected
EventListenerCustom*
_recreateVBOEventListener
protected
var _recreateVBOEventListener
protected
local _recreateVBOEventListener
protected
std::vector<unsigned char>
_shadowCopy
protected
var _shadowCopy
protected
local _shadowCopy
protected
int _sizePerVertex
protected
var _sizePerVertex
protected
local _sizePerVertex
protected
GLenum _usage
protected
var _usage
protected
local _usage
protected
GLuint _vbo
mutableprotected
var _vbo
mutableprotected
local _vbo
mutableprotected
int _vertexNumber
protected
var _vertexNumber
protected
local _vertexNumber
protected

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