Tramway SDK
painis
tram-sdk
src
platform
api.h
Go to the documentation of this file.
1
// Tramway Drifting and Dungeon Exploration Simulator SDK Runtime
2
3
#ifndef TRAM_SDK_PLATFORM_API_H
4
#define TRAM_SDK_PLATFORM_API_H
5
6
#include <cstddef>
7
20
namespace
tram::Platform::Window
{
21
22
void
Init
();
23
void
Update
();
24
void
Uninit
();
25
26
void
SetTitle
(
const
char
*);
27
void
SetSize
(
int
w,
int
h);
28
29
enum
CursorType
{
30
CURSOR_DEFAULT
,
31
CURSOR_TEXT
,
32
CURSOR_CLICK
33
};
34
35
void
SetCursor
(
CursorType
);
36
void
SetCursorPosition
(
float
x,
float
y);
37
38
void
EnableCursor
();
39
void
DisableCursor
();
40
41
void
SetScale
(
int
s);
42
43
double
GetTime
();
44
45
int
GetCurrentMonitor
();
46
int
GetMonitorCount
();
47
void
SetMonitor
(
int
monitor);
48
bool
IsFullscreen
();
49
void
SetFullscreen
(
bool
);
50
bool
IsVsync
();
51
void
SetVsync
(
bool
);
52
bool
IsRawInput
();
53
void
SetRawInput
(
bool
);
54
55
bool
IsRenderContextThread
();
56
57
}
58
59
namespace
tram::Platform::Input
{
60
61
void
Init
();
62
void
Update
();
63
void
Uninit
();
64
65
}
66
67
#endif
// TRAM_SDK_PLATFORM_API_H
tram::Platform::Input
Input backend API.
tram::Platform::Input::Init
void Init()
tram::Platform::Input::Uninit
void Uninit()
tram::Platform::Input::Update
void Update()
tram::Platform::Window
Windowing backend API.
tram::Platform::Window::CursorType
CursorType
Definition:
api.h:29
tram::Platform::Window::CURSOR_DEFAULT
@ CURSOR_DEFAULT
Definition:
api.h:30
tram::Platform::Window::CURSOR_CLICK
@ CURSOR_CLICK
Definition:
api.h:32
tram::Platform::Window::CURSOR_TEXT
@ CURSOR_TEXT
Definition:
api.h:31
tram::Platform::Window::EnableCursor
void EnableCursor()
Definition:
glfw.cpp:174
tram::Platform::Window::SetFullscreen
void SetFullscreen(bool)
Definition:
glfw.cpp:214
tram::Platform::Window::GetMonitorCount
int GetMonitorCount()
Definition:
glfw.cpp:199
tram::Platform::Window::GetTime
double GetTime()
Definition:
glfw.cpp:190
tram::Platform::Window::IsFullscreen
bool IsFullscreen()
Definition:
glfw.cpp:210
tram::Platform::Window::GetCurrentMonitor
int GetCurrentMonitor()
Definition:
glfw.cpp:195
tram::Platform::Window::DisableCursor
void DisableCursor()
Definition:
glfw.cpp:178
tram::Platform::Window::Uninit
void Uninit()
tram::Platform::Window::SetMonitor
void SetMonitor(int monitor)
Definition:
glfw.cpp:205
tram::Platform::Window::IsVsync
bool IsVsync()
Definition:
glfw.cpp:241
tram::Platform::Window::IsRawInput
bool IsRawInput()
Definition:
glfw.cpp:182
tram::Platform::Window::SetTitle
void SetTitle(const char *)
Definition:
glfw.cpp:156
tram::Platform::Window::IsRenderContextThread
bool IsRenderContextThread()
Definition:
glfw.cpp:255
tram::Platform::Window::SetRawInput
void SetRawInput(bool)
Definition:
glfw.cpp:186
tram::Platform::Window::Update
void Update()
tram::Platform::Window::SetScale
void SetScale(int s)
tram::Platform::Window::SetVsync
void SetVsync(bool)
Definition:
glfw.cpp:245
tram::Platform::Window::SetCursorPosition
void SetCursorPosition(float x, float y)
Definition:
glfw.cpp:170
tram::Platform::Window::Init
void Init()
tram::Platform::Window::SetCursor
void SetCursor(CursorType)
Definition:
glfw.cpp:166
tram::Platform::Window::SetSize
void SetSize(int w, int h)
Definition:
glfw.cpp:161
Generated by
1.9.2