CC3OpenGLES11StateTrackerMaterialBlend is a type of CC3OpenGLES11StateTrackerComposite that tracks the source and destination blending GL state values for materials. More...
#import <CC3OpenGLES11Materials.h>
Public Member Functions | |
(void) | - applySource:andDestination: |
Properties | |
CC3OpenGLES11StateTrackerEnumeration * | destinationBlend |
CC3OpenGLES11StateTrackerEnumeration * | sourceBlend |
CC3OpenGLES11StateTrackerMaterialBlend is a type of CC3OpenGLES11StateTrackerComposite that tracks the source and destination blending GL state values for materials.
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.
- (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.
- (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)