cocos2d-x  2.2.6
 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...
 
var setGLBufferData ( var buf, var bufSize, var slot)
 Load the given data into this CCNode's GL Buffer. More...
 
local setGLBufferData ( local buf, local bufSize, local 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  )
var CCGLBufferedNode (   )
local CCGLBufferedNode (   )

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.

var setGLBufferData ( var  buf,
var  bufSize,
var  slot 
)

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

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

local setGLBufferData ( local  buf,
local  bufSize,
local  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 
)
var setGLIndexData ( var  buf,
var  bufSize,
var  slot 
)
local setGLIndexData ( local  buf,
local  bufSize,
local  slot 
)

Member Data Documentation

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

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