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

Class to enable culling in a particular scope only. More...

#include <Helper.h>

Public Member Functions

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

Detailed Description

Class to enable culling in a particular scope only.

Constructor & Destructor Documentation

◆ ScopedCulling()

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

Create an 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: