Public Member Functions | Properties

CC3OpenGLES11StateTrackerArrayBufferBinding Class Reference

CC3OpenGLES11StateTrackerArrayBufferBinding tracks binding and filling a vertex array. More...

#import <CC3OpenGLES11VertexArrays.h>

Inheritance diagram for CC3OpenGLES11StateTrackerArrayBufferBinding:
Inheritance graph
[legend]
Collaboration diagram for CC3OpenGLES11StateTrackerArrayBufferBinding:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(void) - loadBufferData:ofLength:forUse:
(void) - unbind
(void) - updateBufferData:startingAt:forLength:

Properties

GLenum queryName

Detailed Description

CC3OpenGLES11StateTrackerArrayBufferBinding tracks binding and filling a vertex array.

Reading the value from the GL engine uses a different GL enumeration name than setting the value in the GL engine. The property queryName is the GL enumeration name used when reading the GL value.

Uses the GL name GL_ARRAY_BUFFER to set the GL value. Uses the GL query name GL_ARRAY_BUFFER_BINDING to read the GL value.

In addition to binding an array, this class can also load buffer data for the vertex array using the loadBufferData:ofLength:forUse: method.

The originalValueHandling property is set to kCC3GLESStateOriginalValueReadOnceAndRestore, which will cause the state to be automatically read once, on the first invocation of the open method, and to be automatically restored on each invocation of the close method.


Member Function Documentation

- (void) loadBufferData: (GLvoid *)  buffPtr
ofLength: (GLsizeiptr)  buffLen
forUse: (GLenum)  buffUsage 

Loads data into the currently bound GL buffer, starting at the specified buffer pointer, and extending for the specified length.

The buffer usage is a hint for the GL engine, and must be a valid GL buffer usage enumeration value.

- (void) unbind

Unbinds all vertex arrays by setting the value property to zero.

- (void) updateBufferData: (GLvoid *)  buffPtr
startingAt: (GLintptr)  offset
forLength: (GLsizeiptr)  length 

Updates data in the GL buffer, from data starting at the specified offset in the specified buffer pointer, and extending for the specified length.


Property Documentation

- (GLenum) queryName [read, write, assign]

The enumerated name under which the GL engine reads this state.


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