Class containing the OpenGL state manager.
More...
#include <GlStateManager.hpp>
|
| static void | pushMatrix () |
| | Push the opengl matrix. More...
|
| |
| static void | popMatrix () |
| | Pop the opengl matrix. More...
|
| |
| static void | translate (const Vector3f &translation) |
| | Translate the opengl matrix. More...
|
| |
| static void | rotate (const Vector3f &rotation) |
| | Rotate the opengl matrix. More...
|
| |
| static void | scale (const Vector3f &scale) |
| | Scale the opengl matrix. More...
|
| |
| static void | color (const RlColor &color) |
| | Set the color. More...
|
| |
| static void | color (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
| | Set the color. More...
|
| |
| static void | color (float r, float g, float b, float a) |
| | Set the color. More...
|
| |
| static void | color (unsigned char r, unsigned char g, unsigned char b) |
| | Set the color. More...
|
| |
| static void | enableColorBlend () |
| | Enable the color blending. More...
|
| |
| static void | disableColorBlend () |
| | Disable the color blending. More...
|
| |
| static void | enableDepthTest () |
| | Enable the depth test. More...
|
| |
| static void | disableDepthTest () |
| | Disable the depth test. More...
|
| |
| static void | enableDepthMask () |
| | Enable the depth mask. More...
|
| |
| static void | disableDepthMask () |
| | Disable the depth mask. More...
|
| |
| static void | enableBackfaceCulling () |
| | Enable the cull face. More...
|
| |
| static void | disableBackfaceCulling () |
| | Disable the cull face. More...
|
| |
| static void | enableScissorTest () |
| | Enable the scissor test. More...
|
| |
| static void | disableScissorTest () |
| | Disable the scissor test. More...
|
| |
| static void | scissor (int x, int y, int width, int height) |
| | Set the scissor test. More...
|
| |
| static void | scissor (const Rectangle &rect) |
| | Set the scissor test. More...
|
| |
| static void | enableWireMode () |
| | Enable the wire mode. More...
|
| |
| static void | disableWireMode () |
| | Disable the wire mode. More...
|
| |
| static void | enableSmoothLines () |
| | Enable the smooth lines. More...
|
| |
| static void | disableSmoothLines () |
| | Disable the smooth lines. More...
|
| |
Class containing the OpenGL state manager.
◆ color() [1/4]
| void raylib::GlStateManager::color |
( |
const RlColor & |
color | ) |
|
|
static |
Set the color.
- Parameters
-
◆ color() [2/4]
| void raylib::GlStateManager::color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a |
|
) |
| |
|
static |
Set the color.
- Parameters
-
| r | the red value |
| g | the green value |
| b | the blue value |
| a | the alpha value |
◆ color() [3/4]
| void raylib::GlStateManager::color |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b |
|
) |
| |
|
static |
Set the color.
- Parameters
-
| r | the red value |
| g | the green value |
| b | the blue value |
◆ color() [4/4]
| void raylib::GlStateManager::color |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b, |
|
|
unsigned char |
a |
|
) |
| |
|
static |
Set the color.
- Parameters
-
| r | the red value |
| g | the green value |
| b | the blue value |
| a | the alpha value |
◆ disableBackfaceCulling()
| void raylib::GlStateManager::disableBackfaceCulling |
( |
| ) |
|
|
static |
◆ disableColorBlend()
| void raylib::GlStateManager::disableColorBlend |
( |
| ) |
|
|
static |
Disable the color blending.
◆ disableDepthMask()
| void raylib::GlStateManager::disableDepthMask |
( |
| ) |
|
|
static |
◆ disableDepthTest()
| void raylib::GlStateManager::disableDepthTest |
( |
| ) |
|
|
static |
◆ disableScissorTest()
| void raylib::GlStateManager::disableScissorTest |
( |
| ) |
|
|
static |
Disable the scissor test.
◆ disableSmoothLines()
| void raylib::GlStateManager::disableSmoothLines |
( |
| ) |
|
|
static |
Disable the smooth lines.
◆ disableWireMode()
| void raylib::GlStateManager::disableWireMode |
( |
| ) |
|
|
static |
◆ enableBackfaceCulling()
| void raylib::GlStateManager::enableBackfaceCulling |
( |
| ) |
|
|
static |
◆ enableColorBlend()
| void raylib::GlStateManager::enableColorBlend |
( |
| ) |
|
|
static |
Enable the color blending.
◆ enableDepthMask()
| void raylib::GlStateManager::enableDepthMask |
( |
| ) |
|
|
static |
◆ enableDepthTest()
| void raylib::GlStateManager::enableDepthTest |
( |
| ) |
|
|
static |
◆ enableScissorTest()
| void raylib::GlStateManager::enableScissorTest |
( |
| ) |
|
|
static |
◆ enableSmoothLines()
| void raylib::GlStateManager::enableSmoothLines |
( |
| ) |
|
|
static |
◆ enableWireMode()
| void raylib::GlStateManager::enableWireMode |
( |
| ) |
|
|
static |
◆ popMatrix()
| void raylib::GlStateManager::popMatrix |
( |
| ) |
|
|
static |
◆ pushMatrix()
| void raylib::GlStateManager::pushMatrix |
( |
| ) |
|
|
static |
◆ rotate()
| void raylib::GlStateManager::rotate |
( |
const Vector3f & |
rotation | ) |
|
|
static |
Rotate the opengl matrix.
- Parameters
-
| rotation | the rotation to apply |
◆ scale()
| void raylib::GlStateManager::scale |
( |
const Vector3f & |
scale | ) |
|
|
static |
Scale the opengl matrix.
- Parameters
-
◆ scissor() [1/2]
| void raylib::GlStateManager::scissor |
( |
const Rectangle & |
rect | ) |
|
|
static |
Set the scissor test.
- Parameters
-
◆ scissor() [2/2]
| void raylib::GlStateManager::scissor |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
static |
Set the scissor test.
- Parameters
-
| x | the x position |
| y | the y position |
| width | the width |
| height | the height |
◆ translate()
| void raylib::GlStateManager::translate |
( |
const Vector3f & |
translation | ) |
|
|
static |
Translate the opengl matrix.
- Parameters
-
| translation | the translation to apply |
The documentation for this class was generated from the following files: