YourGameLib
Loading...
Searching...
No Matches
Functions
yourgame::control Namespace Reference

framework control functions More...

Functions

void exit ()
 triggers the application to exit after the cycle this function was called in
 
int sendCmdToEnv (int cmdId, int data0, int data1, int data2)
 sends a (user-defined) command to the application host environment
 
void enableFullscreen (bool enable)
 request fullscreen
 
void enableVSync (bool enable)
 request vertical sync
 
void catchMouse (bool enable)
 disable mouse cursor, infinite movement
 

Detailed Description

framework control functions

Function Documentation

◆ catchMouse()

void yourgame::control::catchMouse ( bool  enable)

disable mouse cursor, infinite movement

◆ enableFullscreen()

void yourgame::control::enableFullscreen ( bool  enable)

request fullscreen

◆ enableVSync()

void yourgame::control::enableVSync ( bool  enable)

request vertical sync

Attention
if this works reliable depends on gpu/driver

◆ exit()

void yourgame::control::exit ( )

triggers the application to exit after the cycle this function was called in

◆ sendCmdToEnv()

int yourgame::control::sendCmdToEnv ( int  cmdId,
int  data0,
int  data1,
int  data2 
)

sends a (user-defined) command to the application host environment