Public Member Functions | Properties

CC3OpenGLES11StateTrackerStencilFunction Class Reference

CC3OpenGLES11StateTrackerStencilFunction is a type of CC3OpenGLES11StateTrackerComposite that tracks the stencil function, reference and mask GL state values. More...

#import <CC3OpenGLES11State.h>

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

List of all members.

Public Member Functions

(void) - applyFunction:andReference:andMask:

Properties

CC3OpenGLES11StateTrackerEnumerationfunction
CC3OpenGLES11StateTrackerIntegermask
CC3OpenGLES11StateTrackerIntegerreference

Detailed Description

CC3OpenGLES11StateTrackerStencilFunction is a type of CC3OpenGLES11StateTrackerComposite that tracks the stencil function, reference and mask GL state values.

The function, reference and mask values are read from GL individually, using distinct primitive trackers for each value. All three values are set into the GL engine together using a single call to the GL set function glStencilFunc.

The originalValueHandling property is set to kCC3GLESStateOriginalValueIgnore, which will not read the GL value from the GL engine in the open method, and will not restore the value in the close method.


Member Function Documentation

- (void) applyFunction: (GLenum)  func
andReference: (GLint)  refValue
andMask: (GLuint)  maskValue 

Sets the stencil function, reference, and mask 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 glStencilFunc to set the values in the GL engine.


Property Documentation

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

Tracks the stencil function (GL get name GL_STENCIL_FUNC)

- (CC3OpenGLES11StateTrackerInteger *) mask [read, write, retain]

Tracks the stencil function mask (GL get name GL_STENCIL_VALUE_MASK)

- (CC3OpenGLES11StateTrackerInteger *) reference [read, write, retain]

Tracks the stencil function reference value (GL get name GL_STENCIL_REF)


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