Public Member Functions

CC3OpenGLES11StateTrackerMaterialBlend Class Reference

CC3OpenGLES11StateTrackerMaterialBlend is a type of CC3OpenGLES11StateTrackerComposite that tracks the source and destination blending GL state values for materials. More...

#import <CC3OpenGLES11Materials.h>

Inheritance diagram for CC3OpenGLES11StateTrackerMaterialBlend:
CC3OpenGLES11StateTrackerComposite CC3OpenGLES11StateTracker

List of all members.

Public Member Functions

(void) - applySource:andDestination:

Detailed Description

The blending values are read from GL individually, using distinct primitive trackers for each of the source and destination blend values. Both blending values are set into the GL engine together using a single call to the GL set function glBlendFunc.

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) applySource: (GLenum)  srcBlend
andDestination: (GLenum)  dstBlend 

Sets the source and destination blend values together.

The values will be set in the GL engine only if at least one of the values has actually changed.

Uses the GL set function glBlendFunc to set the values in the GL engine.


Property Documentation

- (CC3OpenGLES11StateTrackerEnumeration *) destinationBlend [read, write, retain]

Tracks destination blend (GL get name GL_BLEND_DST)

- (CC3OpenGLES11StateTrackerEnumeration *) sourceBlend [read, write, retain]

Tracks source blend (GL get name GL_BLEND_SRC)


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