Tramway SDK
painis
tram-sdk
src
platform
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
9
namespace
tram::Platform::Window
{
10
11
void
Init
();
12
void
Update
();
13
void
Uninit
();
14
15
void
SetTitle
(
const
char
*);
16
void
SetSize
(
int
w,
int
h);
17
18
enum
CursorType
{
19
CURSOR_DEFAULT
,
20
CURSOR_TEXT
,
21
CURSOR_CLICK
22
};
23
24
void
SetCursor
(
CursorType
);
25
void
SetCursorPosition
(
float
x,
float
y);
26
27
void
EnableCursor
();
28
void
DisableCursor
();
29
30
void
SetScale
(
int
s);
31
32
double
GetTime
();
33
34
int
GetCurrentMonitor
();
35
int
GetMonitorCount
();
36
void
SetMonitor
(
int
monitor);
37
bool
IsFullscreen
();
38
void
SetFullscreen
(
bool
);
39
bool
IsVsync
();
40
void
SetVsync
(
bool
);
41
bool
IsRawInput
();
42
void
SetRawInput
(
bool
);
43
44
}
45
46
namespace
tram::Platform::Input
{
47
48
void
Init
();
49
void
Update
();
50
void
Uninit
();
51
52
}
53
54
#endif
// TRAM_SDK_PLATFORM_API_H
tram::Platform::Input
Definition:
api.h:46
tram::Platform::Input::Init
void Init()
tram::Platform::Input::Uninit
void Uninit()
tram::Platform::Input::Update
void Update()
tram::Platform::Window
Definition:
api.h:9
tram::Platform::Window::CursorType
CursorType
Definition:
api.h:18
tram::Platform::Window::CURSOR_DEFAULT
@ CURSOR_DEFAULT
Definition:
api.h:19
tram::Platform::Window::CURSOR_CLICK
@ CURSOR_CLICK
Definition:
api.h:21
tram::Platform::Window::CURSOR_TEXT
@ CURSOR_TEXT
Definition:
api.h:20
tram::Platform::Window::EnableCursor
void EnableCursor()
Definition:
glfw.cpp:163
tram::Platform::Window::SetFullscreen
void SetFullscreen(bool)
Definition:
glfw.cpp:203
tram::Platform::Window::GetMonitorCount
int GetMonitorCount()
Definition:
glfw.cpp:188
tram::Platform::Window::GetTime
double GetTime()
Definition:
glfw.cpp:179
tram::Platform::Window::IsFullscreen
bool IsFullscreen()
Definition:
glfw.cpp:199
tram::Platform::Window::GetCurrentMonitor
int GetCurrentMonitor()
Definition:
glfw.cpp:184
tram::Platform::Window::DisableCursor
void DisableCursor()
Definition:
glfw.cpp:167
tram::Platform::Window::Uninit
void Uninit()
tram::Platform::Window::SetMonitor
void SetMonitor(int monitor)
Definition:
glfw.cpp:194
tram::Platform::Window::IsVsync
bool IsVsync()
Definition:
glfw.cpp:230
tram::Platform::Window::IsRawInput
bool IsRawInput()
Definition:
glfw.cpp:171
tram::Platform::Window::SetTitle
void SetTitle(const char *)
Definition:
glfw.cpp:145
tram::Platform::Window::SetRawInput
void SetRawInput(bool)
Definition:
glfw.cpp:175
tram::Platform::Window::Update
void Update()
tram::Platform::Window::SetScale
void SetScale(int s)
tram::Platform::Window::SetVsync
void SetVsync(bool)
Definition:
glfw.cpp:234
tram::Platform::Window::SetCursorPosition
void SetCursorPosition(float x, float y)
Definition:
glfw.cpp:159
tram::Platform::Window::Init
void Init()
tram::Platform::Window::SetCursor
void SetCursor(CursorType)
Definition:
glfw.cpp:155
tram::Platform::Window::SetSize
void SetSize(int w, int h)
Definition:
glfw.cpp:150
Generated by
1.9.2