|
cocos2d-x
3.3
|
#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] |
| GLBufferedNode | ( | ) |
ctor
|
virtual |
NA NA
| 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 | ||
| ) |
| GLuint _bufferObject[BUFFER_SLOTS] |
| GLuint _bufferSize[BUFFER_SLOTS] |
| GLuint _indexBufferObject[BUFFER_SLOTS] |
| GLuint _indexBufferSize[BUFFER_SLOTS] |