Cocos2d-x  v4
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. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

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

◆ DepthStencilStateGL()

Parameters
descriptorSpecifies the depth and stencil status.

Member Function Documentation

◆ apply()

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: