Public Member Functions | Properties

CC3OpenGLES11VertexArrays Class Reference

Inheritance diagram for CC3OpenGLES11VertexArrays:
CC3OpenGLES11StateTrackerManager CC3OpenGLES11StateTracker

List of all members.

Public Member Functions

(CC3OpenGLES11StateTrackerArrayBufferBinding *) - bufferBinding:
(void) - deleteBuffer:
(void) - drawIndicies:ofLength:andType:as:
(void) - drawVerticiesAs:startingAt:withLength:
(GLuint) - generateBuffer

Properties

CC3OpenGLES11StateTrackerArrayBufferBindingarrayBuffer
CC3OpenGLES11StateTrackerVertexColorsPointercolors
CC3OpenGLES11StateTrackerElementArrayBufferBindingindexBuffer
CC3OpenGLES11StateTrackerVertexLocationsPointerlocations
CC3OpenGLES11StateTrackerVertexNormalsPointernormals
CC3OpenGLES11StateTrackerVertexPointSizesPointerpointSizes
CC3OpenGLES11StateTrackerVertexTexCoordsPointertextureCoordinates

Member Function Documentation

- (CC3OpenGLES11StateTrackerArrayBufferBinding*) bufferBinding: (GLenum)  bufferTarget

Returns the array or index buffer binding tracker, as determined by the specified bufferTarget value.

  • returns the tracker in the arrayBuffer property if bufferTarget is GL_ARRAY_BUFFER
  • returns the tracker in the indexBuffer property if bufferTarget is GL_ELEMENT_ARRAY_BUFFER
  • raises an assertion error if bufferTarget is any other value.
- (void) deleteBuffer: (GLuint)  buffID

Deletes the GL buffer with the specifid buffer ID.

This is a wrapper for the GL function glDeleteBuffers.

- (void) drawIndicies: (GLvoid *)  indicies
ofLength: (GLuint)  len
andType: (GLenum)  type
as: (GLenum)  drawMode 

Draws the vertices indexed by the specified indices, to the specified number of indices, each of the specified GL type, and using the specified draw mode.

This is a wrapper for the GL function glDrawElements.

- (void) drawVerticiesAs: (GLenum)  drawMode
startingAt: (GLuint)  start
withLength: (GLuint)  len 

Draws vertices bound by the vertex pointers using the specified draw mode, starting at the specified index, and drawing the specified number of verticies.

This is a wrapper for the GL function glDrawArrays.

- (GLuint) generateBuffer

Generates and returns a GL buffer ID.

This is a wrapper for the GL function glGenBuffers.


Property Documentation

- (CC3OpenGLES11StateTrackerArrayBufferBinding *) arrayBuffer [read, write, retain]

Tracks vertex array buffer binding.

- (CC3OpenGLES11StateTrackerVertexColorsPointer *) colors [read, write, retain]

Tracks the vertex colors pointer.

- (CC3OpenGLES11StateTrackerElementArrayBufferBinding *) indexBuffer [read, write, retain]

Tracks vertex element array buffer binding.

- (CC3OpenGLES11StateTrackerVertexLocationsPointer *) locations [read, write, retain]

Tracks the vertex locations pointer.

- (CC3OpenGLES11StateTrackerVertexNormalsPointer *) normals [read, write, retain]

Tracks the vertex normals pointer.

- (CC3OpenGLES11StateTrackerVertexPointSizesPointer *) pointSizes [read, write, retain]

Tracks the vertex point sizes pointer.

- (CC3OpenGLES11StateTrackerVertexTexCoordsPointer *) textureCoordinates [read, write, retain]

Tracks the vertex texture coordinates pointer.


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