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

Helper class for Camera. More...

#include <CameraHelper.hpp>

Collaboration diagram for raylib::helper::CameraHelper:
Collaboration graph

Static Public Member Functions

static void setPanControl (int keyPan)
 Set camera pan key to combine with mouse movement (free camera) More...
 
static void setAltControl (int keyAlt)
 Set camera alt key to combine with mouse movement (free camera) More...
 
static void setSmoothZoomControl (int keySmoothZoom)
 Set camera smooth zoom key to combine with mouse movement (free camera) More...
 
static void setMoveControls (int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown)
 Set camera move controls (1st person and 3rd person cameras) More...
 
static void setCameraMode (const RlCamera &camera, const CameraMode &mode)
 Set camera mode (global camera) More...
 

Detailed Description

Helper class for Camera.

Member Function Documentation

◆ setAltControl()

void raylib::helper::CameraHelper::setAltControl ( int  keyAlt)
static

Set camera alt key to combine with mouse movement (free camera)

Parameters
keyAltthe key to combine with mouse movement

◆ setCameraMode()

void raylib::helper::CameraHelper::setCameraMode ( const RlCamera camera,
const CameraMode &  mode 
)
static

Set camera mode (global camera)

Parameters
camerathe camera to set
modethe mode to set
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setMoveControls()

void raylib::helper::CameraHelper::setMoveControls ( int  keyFront,
int  keyBack,
int  keyRight,
int  keyLeft,
int  keyUp,
int  keyDown 
)
static

Set camera move controls (1st person and 3rd person cameras)

Parameters
keyFrontthe key to forward
keyBackthe key to backward
keyRightthe key to right
keyLeftthe key to left
keyUpthe key to up
keyDownthe key to down

◆ setPanControl()

void raylib::helper::CameraHelper::setPanControl ( int  keyPan)
static

Set camera pan key to combine with mouse movement (free camera)

Parameters
keyPanthe key to combine with mouse movement

◆ setSmoothZoomControl()

void raylib::helper::CameraHelper::setSmoothZoomControl ( int  keySmoothZoom)
static

Set camera smooth zoom key to combine with mouse movement (free camera)

Parameters
keySmoothZoomthe key to combine with mouse movement

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