Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::xgl::ScopedCulling Class Reference

Easy to use class to enable culling temporarily. More...

#include <Helper.h>

Public Member Functions

 ScopedCulling (Helper &helper, CullingState state={cfEnabled|cfCCW|cfBackside})
 Create instance culling front or back of the object.
 
 ~ScopedCulling ()
 Disables the culling when getting out of scope.
 

Detailed Description

Easy to use class to enable culling temporarily.

Constructor & Destructor Documentation

◆ ScopedCulling()

sf::xgl::ScopedCulling::ScopedCulling ( Helper helper,
CullingState  state = {cfEnabled|cfCCW|cfBackside} 
)
explicit

Create instance culling front or back of the object.

Parameters
helperHelper class.
stateThe culling state assembled from ECullingFlag. The OpenGL default is CCW and Backside.

◆ ~ScopedCulling()

sf::xgl::ScopedCulling::~ScopedCulling ( )

Disables the culling when getting out of scope.


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