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

#include <CCGLBufferedNode.h>

Public Member Functions

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

Public Attributes

GLuint _bufferObject [4]
GLuint _bufferSize [4]
var _bufferSize ()
local _bufferSize ()
GLuint _indexBufferObject [4]
var _indexBufferObject ()
local _indexBufferObject ()
GLuint _indexBufferSize [4]

Constructor & Destructor Documentation

var ctor ( )
local GLBufferedNode ( )
virtual ~GLBufferedNode ( )
virtual

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.

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

Load the given data into this Node'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 Node'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 _bufferObject[4]
GLuint _bufferObject[4]
GLuint _bufferObject[4]
GLuint _bufferSize[4]
GLuint _bufferSize[4]
GLuint _bufferSize[4]
GLuint _indexBufferObject[4]
GLuint _indexBufferObject[4]
GLuint _indexBufferObject[4]
GLuint _indexBufferSize[4]
GLuint _indexBufferSize[4]
GLuint _indexBufferSize[4]

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