94 void setParams(
const std::vector<std::string>& argv);
CApplication()
Constructor for CApplication.
bool m_runGame
Flag indicating whether the application is running.
Definition CApplication.h:58
void initApplication(IrrlichtDevice *device)
Initialize the application with an Irrlicht device.
void resume(int showConnecting=1)
Resume the application after pause.
std::vector< std::string > m_argv
Command line arguments for the application.
Definition CApplication.h:61
void updateAccelerometer(float x, float y, float z)
Update accelerometer values (motion sensor).
int back()
Handle Back event (commonly used on mobile).
void onInit()
Send initialization event to application receivers.
void destroyApplication()
Destroy the application and release resources.
const std::vector< std::string > & getParams()
Get the list of command line parameters passed to the application.
bool isAccelerometerEnable()
Check if accelerometer is enabled.
void updateAnalog(int deviceID, int id, float x, float y)
Update analog event from joystick.
virtual bool OnEvent(const SEvent &event)
Handle input events.
void updateJoystick(int deviceID, int key, int action)
Update joystick event (game controller).
void updateTouch(long touchID, int x, int y, int action)
Update touch event (screen interaction).
void setDeviceID(const wchar_t *string)
Set device ID (unicode string).
void pause()
Pause the application.
void notifyResizeWin(int w, int h)
Notify window size change.
virtual ~CApplication()
Destructor for CApplication, releases resources.
void mainLoop()
Main loop of the application. Calls update, render, and handles events.
void setParams(const std::vector< std::string > &argv)
Set command line parameters for the application.
void setAccelerometerSupport(bool b)
Set accelerometer support.
void setAccelerometerEnable(bool b)
Enable/disable accelerometer.
bool onClose()
Handle application close event.
void setDeviceID(const char *string)
Set device ID (ansi string).
void resetTouch()
Reset touch (screen touch) state.
int m_fps
Current limit FPS value.
Definition CApplication.h:48
void releasePlugin()
Release the application external plugin.
CBaseApp * getBaseApp()
Returns a pointer to CBaseApp (for multiple inheritance).
Definition CApplication.h:85
void enableWriteLog(bool b)
Enable/disable console logging.
std::function< void()> OnExitApplication
Callback for application exit (use on MacOS).
Definition CApplication.h:51
void initPlugin()
Initialize the application external plugin.
unsigned long m_lastUpdateTime
Last update time(milliseconds).
Definition CApplication.h:45
CBaseApp()
Default constructor for CBaseApp.
Interface of an object which can receive events.
Definition IEventReceiver.h:474
The Irrlicht device. You can create it with createDevice() or createDeviceEx().
Definition IrrlichtDevice.h:44
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
Definition IEventReceiver.h:273