Cumulia Illustrator Rendering Engine v1.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
cil::Depth Class Reference

The Depth class inherits from the base class State, describing how the depth test is operated during rendering. More...

#include <state.h>

Inheritance diagram for cil::Depth:
cil::State cil::Object

Public Types

enum class  Function {
  NEVER , LESS , LEQUAL , EQUAL ,
  NOTEQUAL , GEQUAL , GREATER , ALWAYS
}
 This enumeration defines different comparison operators used for the depth test. More...
 

Public Member Functions

 Depth (bool enabled=false, Depth::Function func=Depth::Function::LESS, bool writeMask=true)
 
- Public Member Functions inherited from cil::State
 State ()
 
const std::string & className () const
 
- Public Member Functions inherited from cil::Object
 Object ()
 
virtual ~Object ()
 

Public Attributes

bool enabled
 This member allows you to enable/diable depth test.
 
Function func
 
bool writeMask
 

Additional Inherited Members

- Protected Attributes inherited from cil::State
std::string m_className
 

Detailed Description

The Depth class inherits from the base class State, describing how the depth test is operated during rendering.

Member Enumeration Documentation

◆ Function

enum class cil::Depth::Function
strong

This enumeration defines different comparison operators used for the depth test.

The depth test compares the fragment's depth value with the stored depth value, and this function determines the conditions for passing the test.

Enumerator
NEVER 
LESS 
LEQUAL 
EQUAL 
NOTEQUAL 
GEQUAL 
GREATER 
ALWAYS 

Constructor & Destructor Documentation

◆ Depth()

cil::Depth::Depth ( bool enabled = false,
Depth::Function func = Depth::Function::LESS,
bool writeMask = true )

Member Data Documentation

◆ enabled

bool cil::Depth::enabled

This member allows you to enable/diable depth test.

◆ func

Function cil::Depth::func

◆ writeMask

bool cil::Depth::writeMask