Cocos2d-x  4.0.0
Public Member Functions | Static Public Member Functions | List of all members
DepthStencilStateGL Class Reference

Set depth and stencil status to pipeline. More...

Inherits DepthStencilState.

Public Member Functions

 DepthStencilStateGL (const DepthStencilDescriptor &descriptor)
 
void apply (unsigned int stencilReferenceValueFront, unsigned int stencilReferenceValueBack) const
 Set depth and stencil status to pipeline.
 

Static Public Member Functions

static void reset ()
 Reset to default state.
 

Additional Inherited Members

- Public Attributes inherited from Ref
unsigned int _ID
 object id, ScriptSupport need public _ID
 
int _luaID
 Lua reference id.
 
void * _scriptObject
 scriptObject, support for swift
 
bool _rooted
 When true, it means that the object was already rooted.
 

Detailed Description

Set depth and stencil status to pipeline.

Constructor & Destructor Documentation

Parameters
descriptorSpecifies the depth and stencil status.

Member Function Documentation

void apply ( unsigned int  stencilReferenceValueFront,
unsigned int  stencilReferenceValueBack 
) const

Set depth and stencil status to pipeline.

Parameters
stencilReferenceValueFrontSpecifies front stencil reference value.
stencilReferenceValueBackSpecifies back stencil reference value.

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