Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::GlStateManager Class Reference

Class containing the OpenGL state manager. More...

#include <GlStateManager.hpp>

Collaboration diagram for raylib::GlStateManager:
Collaboration graph

Static Public Member Functions

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...
 

Detailed Description

Class containing the OpenGL state manager.

Member Function Documentation

◆ color() [1/4]

void raylib::GlStateManager::color ( const RlColor color)
static

Set the color.

Parameters
colorthe color to set
Here is the call graph for this function:

◆ color() [2/4]

void raylib::GlStateManager::color ( float  r,
float  g,
float  b,
float  a 
)
static

Set the color.

Parameters
rthe red value
gthe green value
bthe blue value
athe alpha value

◆ color() [3/4]

void raylib::GlStateManager::color ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)
static

Set the color.

Parameters
rthe red value
gthe green value
bthe 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
rthe red value
gthe green value
bthe blue value
athe alpha value

◆ disableBackfaceCulling()

void raylib::GlStateManager::disableBackfaceCulling ( )
static

Disable the cull face.

◆ disableColorBlend()

void raylib::GlStateManager::disableColorBlend ( )
static

Disable the color blending.

◆ disableDepthMask()

void raylib::GlStateManager::disableDepthMask ( )
static

Disable the depth mask.

◆ disableDepthTest()

void raylib::GlStateManager::disableDepthTest ( )
static

Disable the depth test.

◆ 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

Disable the wire mode.

Here is the caller graph for this function:

◆ enableBackfaceCulling()

void raylib::GlStateManager::enableBackfaceCulling ( )
static

Enable the cull face.

◆ enableColorBlend()

void raylib::GlStateManager::enableColorBlend ( )
static

Enable the color blending.

◆ enableDepthMask()

void raylib::GlStateManager::enableDepthMask ( )
static

Enable the depth mask.

◆ enableDepthTest()

void raylib::GlStateManager::enableDepthTest ( )
static

Enable the depth test.

◆ enableScissorTest()

void raylib::GlStateManager::enableScissorTest ( )
static

Enable the scissor test.

◆ enableSmoothLines()

void raylib::GlStateManager::enableSmoothLines ( )
static

Enable the smooth lines.

◆ enableWireMode()

void raylib::GlStateManager::enableWireMode ( )
static

Enable the wire mode.

Here is the caller graph for this function:

◆ popMatrix()

void raylib::GlStateManager::popMatrix ( )
static

Pop the opengl matrix.

◆ pushMatrix()

void raylib::GlStateManager::pushMatrix ( )
static

Push the opengl matrix.

◆ rotate()

void raylib::GlStateManager::rotate ( const Vector3f rotation)
static

Rotate the opengl matrix.

Parameters
rotationthe rotation to apply

◆ scale()

void raylib::GlStateManager::scale ( const Vector3f scale)
static

Scale the opengl matrix.

Parameters
scalethe scale to apply

◆ scissor() [1/2]

void raylib::GlStateManager::scissor ( const Rectangle &  rect)
static

Set the scissor test.

Parameters
rectthe rectangle to use

◆ scissor() [2/2]

void raylib::GlStateManager::scissor ( int  x,
int  y,
int  width,
int  height 
)
static

Set the scissor test.

Parameters
xthe x position
ythe y position
widththe width
heightthe height

◆ translate()

void raylib::GlStateManager::translate ( const Vector3f translation)
static

Translate the opengl matrix.

Parameters
translationthe translation to apply

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