#include <GlState.hpp>
|
enum | DepthFunc {
DepthFunc::Never,
DepthFunc::Less,
DepthFunc::Equal,
DepthFunc::LessEqual,
DepthFunc::Greater,
DepthFunc::NotEqual,
DepthFunc::GreaterEqual,
DepthFunc::Always
} |
|
enum | FaceCull { FaceCull::Front,
FaceCull::Back,
FaceCull::Both
} |
|
enum | BlendFunc {
BlendFunc::Zero,
BlendFunc::One,
BlendFunc::SrcColor,
BlendFunc::OneMinusSrcColor,
BlendFunc::DstColor,
BlendFunc::OneMinusDstColor,
BlendFunc::SrcAlpha,
BlendFunc::OneMinusSrcAlpha,
BlendFunc::DstAlpha,
BlendFunc::OneMinusDstAlpha,
BlendFunc::ConstantColor,
BlendFunc::OneMinusConstantColor,
BlendFunc::ConstantAlpha,
BlendFunc::OneMinusConstantAlpha
} |
|
enum | PolygonMode { PolygonMode::Fill,
PolygonMode::Line,
PolygonMode::Point
} |
|
Definition at line 38 of file GlState.hpp.
Blend functions
Enumerator |
---|
Zero |
|
One |
|
SrcColor |
|
OneMinusSrcColor |
|
DstColor |
|
OneMinusDstColor |
|
SrcAlpha |
|
OneMinusSrcAlpha |
|
DstAlpha |
|
OneMinusDstAlpha |
|
ConstantColor |
|
OneMinusConstantColor |
|
ConstantAlpha |
|
OneMinusConstantAlpha |
|
Definition at line 75 of file GlState.hpp.
Depth functions
Enumerator |
---|
Never |
|
Less |
|
Equal |
|
LessEqual |
|
Greater |
|
NotEqual |
|
GreaterEqual |
|
Always |
|
Definition at line 52 of file GlState.hpp.
Face culling modes
Enumerator |
---|
Front |
|
Back |
|
Both |
|
Definition at line 66 of file GlState.hpp.
Polygon mode
Enumerator |
---|
Fill |
|
Line |
|
Point |
|
Definition at line 95 of file GlState.hpp.
static void jop::GlState::flush |
( |
| ) |
|
|
static |
Set the blend function.
- Parameters
-
enable | Enable blending |
srcFactor | The source factor |
dstFactor | The destination factor |
Set the depth test.
- Parameters
-
enable | Enable depth test |
func | The depth function |
static void jop::GlState::setDepthWrite |
( |
const bool |
enable | ) |
|
|
static |
Enable/disable depth buffer writing.
- Parameters
-
enable | Enable depth writes? |
Set the face culling mode.
- Parameters
-
enable | Enable face culling |
cull | The face culling mode |
static void jop::GlState::setLineSmooth |
( |
const bool |
enable | ) |
|
|
static |
Enable/disable line smoothing.
- Parameters
-
static void jop::GlState::setLineWidth |
( |
const float |
width | ) |
|
|
static |
Set the line width.
- Parameters
-
static void jop::GlState::setPolygonMode |
( |
const PolygonMode |
mode | ) |
|
|
static |
Set the polygon rasterization mode.
- Parameters
-
static void jop::GlState::setPolygonSmooth |
( |
const bool |
enable | ) |
|
|
static |
Enable/disable polygon smoothing.
- Parameters
-
static void jop::GlState::setSeamlessCubemap |
( |
const bool |
enable | ) |
|
|
static |
Enable/disable seamless cube mapping.
- Parameters
-
static void jop::GlState::setStencilTest |
( |
const bool |
enable, |
|
|
const DepthFunc |
func = DepthFunc::Always , |
|
|
const unsigned int |
mask = 0xFFFFFFFF |
|
) |
| |
|
static |
Set the stencil test.
- Parameters
-
enable | Enable stencil test |
func | The stencil function |
mask | The mask |
static void jop::GlState::setVertexAttribute |
( |
const bool |
enable, |
|
|
const unsigned int |
index |
|
) |
| |
|
static |
Enable/disable vertex attribute.
- Parameters
-
enable | Enable the attribute? |
index | The attribute index |
The documentation for this class was generated from the following file: