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

#include <CCGLBufferedNode.h>

Public Member Functions

 GLBufferedNode ()
 ctor More...
 
virtual ~GLBufferedNode ()
 NA NA More...
 
void setGLBufferData (void *buf, GLuint bufSize, int slot)
 Load the given data into this Node's GL Buffer. More...
 
void setGLIndexData (void *buf, GLuint bufSize, int slot)
 

Public Attributes

GLuint _bufferObject [BUFFER_SLOTS]
 
GLuint _bufferSize [BUFFER_SLOTS]
 
GLuint _indexBufferObject [BUFFER_SLOTS]
 
GLuint _indexBufferSize [BUFFER_SLOTS]
 

Constructor & Destructor Documentation

ctor

virtual ~GLBufferedNode ( )
virtual

NA NA

Member Function Documentation

void setGLBufferData ( void *  buf,
GLuint  bufSize,
int  slot 
)

Load the given data into this Node's GL Buffer.

Needed for WebGL, as it does not support client-side arrays.

void setGLIndexData ( void *  buf,
GLuint  bufSize,
int  slot 
)

Member Data Documentation

GLuint _bufferObject[BUFFER_SLOTS]
GLuint _bufferSize[BUFFER_SLOTS]
GLuint _indexBufferObject[BUFFER_SLOTS]
GLuint _indexBufferSize[BUFFER_SLOTS]

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