Tramway SDK
api.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_PLATFORM_API_H
5#define TRAM_SDK_PLATFORM_API_H
6
7#include <cstddef>
8
10
11void Init();
12void Update();
13void Uninit();
14
15void SetTitle(const char*);
16void SetSize(int w, int h);
17
22};
23
25void SetCursorPosition(float x, float y);
26
27void EnableCursor();
28void DisableCursor();
29
30void SetScale(int s);
31
32double GetTime();
33
35int GetMonitorCount();
36void SetMonitor(int monitor);
37bool IsFullscreen();
38void SetFullscreen(bool);
39bool IsVsync();
40void SetVsync(bool);
41bool IsRawInput();
42void SetRawInput(bool);
43
44}
45
47
48void Init();
49void Update();
50void Uninit();
51
52}
53
54#endif // TRAM_SDK_PLATFORM_API_H
Definition: api.h:46
Definition: api.h:9
CursorType
Definition: api.h:18
@ CURSOR_DEFAULT
Definition: api.h:19
@ CURSOR_CLICK
Definition: api.h:21
@ CURSOR_TEXT
Definition: api.h:20
void EnableCursor()
Definition: glfw.cpp:163
void SetFullscreen(bool)
Definition: glfw.cpp:203
int GetMonitorCount()
Definition: glfw.cpp:188
double GetTime()
Definition: glfw.cpp:179
bool IsFullscreen()
Definition: glfw.cpp:199
int GetCurrentMonitor()
Definition: glfw.cpp:184
void DisableCursor()
Definition: glfw.cpp:167
void SetMonitor(int monitor)
Definition: glfw.cpp:194
bool IsVsync()
Definition: glfw.cpp:230
bool IsRawInput()
Definition: glfw.cpp:171
void SetTitle(const char *)
Definition: glfw.cpp:145
void SetRawInput(bool)
Definition: glfw.cpp:175
void SetVsync(bool)
Definition: glfw.cpp:234
void SetCursorPosition(float x, float y)
Definition: glfw.cpp:159
void SetCursor(CursorType)
Definition: glfw.cpp:155
void SetSize(int w, int h)
Definition: glfw.cpp:150