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

Helper class for raylib core functions. More...

#include <CoreHelper.hpp>

Collaboration diagram for raylib::helper::CoreHelper:
Collaboration graph

Static Public Member Functions

static VrStereoConfig loadVrStereoConfig (const VrDeviceInfo &device)
 Load VR stereo config for VR simulator device parameters. More...
 
static void unloadVrStereoConfig (const VrStereoConfig &config)
 Unload VR stereo config. More...
 
static void setFramerateLimit (int fps)
 Set target FPS (maximum) More...
 
static int getFPS ()
 Get current FPS. More...
 
static float getFrameTime ()
 Get time in seconds for last frame drawn (delta time) More...
 
static double getTime ()
 Get elapsed time in seconds since InitWindow() More...
 
static void openURL (const std::string &url)
 Open URL with default system browser (if available) More...
 

Detailed Description

Helper class for raylib core functions.

Member Function Documentation

◆ getFPS()

int raylib::helper::CoreHelper::getFPS ( )
static

Get current FPS.

Returns
the current FPS

◆ getFrameTime()

float raylib::helper::CoreHelper::getFrameTime ( )
static

Get time in seconds for last frame drawn (delta time)

Returns
the time in seconds for last frame drawn (delta time)
Here is the caller graph for this function:

◆ getTime()

double raylib::helper::CoreHelper::getTime ( )
static

Get elapsed time in seconds since InitWindow()

Returns
the elapsed time in seconds since InitWindow()

◆ loadVrStereoConfig()

VrStereoConfig raylib::helper::CoreHelper::loadVrStereoConfig ( const VrDeviceInfo &  device)
static

Load VR stereo config for VR simulator device parameters.

Parameters
devicethe device to load the config for
Returns
VR stereo config

◆ openURL()

void raylib::helper::CoreHelper::openURL ( const std::string &  url)
static

Open URL with default system browser (if available)

Parameters
urlthe URL to open

◆ setFramerateLimit()

void raylib::helper::CoreHelper::setFramerateLimit ( int  fps)
static

Set target FPS (maximum)

Parameters
fpsthe target FPS
Here is the caller graph for this function:

◆ unloadVrStereoConfig()

void raylib::helper::CoreHelper::unloadVrStereoConfig ( const VrStereoConfig &  config)
static

Unload VR stereo config.

Parameters
configthe config to unload

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