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

#include <CCGLBufferedNode.h>

Public Member Functions

 CCGLBufferedNode (void)
void setGLBufferData (void *buf, GLuint bufSize, int slot)
 Load the given data into this CCNode's GL Buffer. More...
 
void setGLIndexData (void *buf, GLuint bufSize, int slot)

Public Attributes

GLuint m_bufferObject [4]
GLuint m_bufferSize [4]
GLuint m_indexBufferObject [4]
GLuint m_indexBufferSize [4]

Constructor & Destructor Documentation

CCGLBufferedNode ( void  )

Member Function Documentation

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

Load the given data into this CCNode'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 m_bufferObject[4]
GLuint m_bufferSize[4]
GLuint m_indexBufferObject[4]
GLuint m_indexBufferSize[4]

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