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

Helper class for drawing. More...

#include <DrawHelper.hpp>

Collaboration diagram for raylib::helper::draw::DrawHelper:
Collaboration graph

Static Public Member Functions

static void clearBackground (const RlColor &color)
 Set background color (framebuffer clear color) More...
 
static void beginDrawing ()
 Setup canvas (framebuffer) to start drawing. More...
 
static void endDrawing ()
 End canvas drawing and swap buffers (double buffering) More...
 
static void beginMode2D (const Camera2D &camera)
 Begin 2D mode with custom camera (2D) More...
 
static void endMode2D ()
 Ends 2D mode with custom camera (2D) More...
 
static void beginMode3D (const RlCamera &camera)
 Begin 3D mode with custom camera (3D) More...
 
static void endMode3D ()
 Ends 3D mode and returns to default 2D orthographic mode. More...
 
static void beginTextureMode (const RenderTexture2D &target)
 Begin drawing to Draw texture. More...
 
static void endTextureMode ()
 Ends drawing to Draw texture. More...
 
static void beginShaderMode (const shader::RlShader &shader)
 Begin custom shader drawing. More...
 
static void endShaderMode ()
 End custom shader drawing (use default shader) More...
 
static void beginBlendMode (int mode)
 Begin blending mode (alpha, additive, multiplied, subtract, custom) More...
 
static void endBlendMode ()
 End blending mode (reset to default: alpha blending) More...
 
static void beginScissorMode (int x, int y, int width, int height)
 Begin scissor mode (define screen area for following drawing) More...
 
static void endScissorMode ()
 End scissor mode. More...
 
static void beginVrStereoMode (const VrStereoConfig &config)
 Begin stereo rendering (requires VR simulator) More...
 
static void endVrStereoMode ()
 End stereo rendering (requires VR simulator) More...
 

Detailed Description

Helper class for drawing.

Member Function Documentation

◆ beginBlendMode()

void raylib::helper::draw::DrawHelper::beginBlendMode ( int  mode)
static

Begin blending mode (alpha, additive, multiplied, subtract, custom)

Parameters
modeto use

◆ beginDrawing()

void raylib::helper::draw::DrawHelper::beginDrawing ( )
static

Setup canvas (framebuffer) to start drawing.

Here is the caller graph for this function:

◆ beginMode2D()

void raylib::helper::draw::DrawHelper::beginMode2D ( const Camera2D &  camera)
static

Begin 2D mode with custom camera (2D)

Parameters
camerato use

◆ beginMode3D()

void raylib::helper::draw::DrawHelper::beginMode3D ( const RlCamera camera)
static

Begin 3D mode with custom camera (3D)

Parameters
camerato use
Here is the call graph for this function:
Here is the caller graph for this function:

◆ beginScissorMode()

void raylib::helper::draw::DrawHelper::beginScissorMode ( int  x,
int  y,
int  width,
int  height 
)
static

Begin scissor mode (define screen area for following drawing)

Parameters
xto use
yto use
widthto use
heightto use

◆ beginShaderMode()

void raylib::helper::draw::DrawHelper::beginShaderMode ( const shader::RlShader shader)
static

Begin custom shader drawing.

Parameters
shaderto use
Here is the call graph for this function:

◆ beginTextureMode()

void raylib::helper::draw::DrawHelper::beginTextureMode ( const RenderTexture2D &  target)
static

Begin drawing to Draw texture.

Parameters
targetto Draw to

◆ beginVrStereoMode()

void raylib::helper::draw::DrawHelper::beginVrStereoMode ( const VrStereoConfig &  config)
static

Begin stereo rendering (requires VR simulator)

Parameters
configto use

◆ clearBackground()

void raylib::helper::draw::DrawHelper::clearBackground ( const RlColor color)
static

Set background color (framebuffer clear color)

Parameters
color
Here is the call graph for this function:
Here is the caller graph for this function:

◆ endBlendMode()

void raylib::helper::draw::DrawHelper::endBlendMode ( )
static

End blending mode (reset to default: alpha blending)

◆ endDrawing()

void raylib::helper::draw::DrawHelper::endDrawing ( )
static

End canvas drawing and swap buffers (double buffering)

Here is the caller graph for this function:

◆ endMode2D()

void raylib::helper::draw::DrawHelper::endMode2D ( )
static

Ends 2D mode with custom camera (2D)

◆ endMode3D()

void raylib::helper::draw::DrawHelper::endMode3D ( )
static

Ends 3D mode and returns to default 2D orthographic mode.

Here is the caller graph for this function:

◆ endScissorMode()

void raylib::helper::draw::DrawHelper::endScissorMode ( )
static

End scissor mode.

◆ endShaderMode()

void raylib::helper::draw::DrawHelper::endShaderMode ( )
static

End custom shader drawing (use default shader)

◆ endTextureMode()

void raylib::helper::draw::DrawHelper::endTextureMode ( )
static

Ends drawing to Draw texture.

◆ endVrStereoMode()

void raylib::helper::draw::DrawHelper::endVrStereoMode ( )
static

End stereo rendering (requires VR simulator)


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