CC3OpenGLES11StateTrackerAlphaFunction is a type of CC3OpenGLES11StateTrackerComposite that tracks the alpha test function and reference GL state values for materials. More...
#import <CC3OpenGLES11Materials.h>
Public Member Functions | |
(void) | - applyFunction:andReference: |
Properties | |
CC3OpenGLES11StateTrackerEnumeration * | function |
CC3OpenGLES11StateTrackerFloat * | reference |
CC3OpenGLES11StateTrackerAlphaFunction is a type of CC3OpenGLES11StateTrackerComposite that tracks the alpha test function and reference GL state values for materials.
The function and reference values are read from GL individually, using distinct primitive trackers for each of the function and reference values. Both values are set into the GL engine together using a single call to the GL set function glAlphaFunc.
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) applyFunction: | (GLenum) | func | |
andReference: | (GLfloat) | refValue | |
Sets the alpha test function and reference 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 glAlphaFunc to set the values in the GL engine.
- (CC3OpenGLES11StateTrackerEnumeration *) function [read, write, retain] |
Tracks the alpha test function (GL get name GL_ALPHA_TEST_FUNC)
- (CC3OpenGLES11StateTrackerFloat *) reference [read, write, retain] |
Tracks the alpha test reference value (GL get name GL_ALPHA_TEST_REF)