Public Member Functions | Properties

CC3OpenGLES11StateTrackerAlphaFunction Class Reference

CC3OpenGLES11StateTrackerAlphaFunction is a type of CC3OpenGLES11StateTrackerComposite that tracks the alpha test function and reference GL state values for materials. More...

#import <CC3OpenGLES11Materials.h>

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

List of all members.

Public Member Functions

(void) - applyFunction:andReference:

Properties

CC3OpenGLES11StateTrackerEnumerationfunction
CC3OpenGLES11StateTrackerFloatreference

Detailed Description

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.


Member Function Documentation

- (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.


Property Documentation

- (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)


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