PrevUpHomeNext

Face orientation and mode

#include <oglplus/face_mode.hpp>

Facing

enum class Face : GLenum
{
	Front        = GL_FRONT,
	Back         = GL_BACK,
	FrontAndBack = GL_FRONT_AND_BACK
};

template <>
Range<Face> EnumValueRange<Face>(void);

StrCRef EnumValueName(Face);

Single face

enum class SingleFace : GLenum
{
	Front = GL_FRONT,
	Back  = GL_BACK
};

template <>
Range<SingleFace> EnumValueRange<SingleFace>(void);

StrCRef EnumValueName(SingleFace);

Orientation

enum class FaceOrientation : GLenum
{
	CW  = GL_CW,
	CCW = GL_CCW
};

template <>
Range<FaceOrientation> EnumValueRange<FaceOrientation>(void);

StrCRef EnumValueName(FaceOrientation);

Functions

Face Opposite(Face facing); 1

FaceOrientation Inverted(FaceOrientation winding); 2

1

Returns the opposite facing direction (Front if Back and Back if Front).

2

Inverts the face orientation (CW to CCW and CCW to CW).


PrevUpHomeNext