World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Api.h
См. документацию.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 #include "Engine/Point.h"
7 #include "Engine/Strings.h"
8 
9 #include "Platform/OSWindow.h"
10 
11 int OS_GetAppInt(const char *pKey, int uDefValue);
12 void OS_SetAppInt(const char *pKey, int val);
13 
14 bool OS_GetAppString(const char *path, char *out_string, int out_string_size);
15 void OS_GetAppString(const char *pKeyName, char *pOutString, int uBufLen,
16  const char *pDefaultValue);
17 void OS_SetAppString(const char *pKey, const char *pString);
18 
19 void OS_MsgBox(const char *msg, const char *title);
20 void OS_WaitMessage();
21 
22 void OS_Sleep(int ms);
23 void OS_ShowCursor(bool show);
24 
25 bool OS_OpenConsole();
26 
28 
29 unsigned int OS_GetTime();
31 
32 bool OS_IfShiftPressed();
33 bool OS_IfCtrlPressed();
34 
35 std::vector<std::string> OS_FindFiles(const std::string &folder, const std::string &mask);
OSWindow.h
mask
GLenum GLint GLuint mask
Definition: SDL_opengl_glext.h:660
OS_ShowCursor
void OS_ShowCursor(bool show)
Definition: Lin.cpp:28
Point.h
path
GLsizei const GLchar *const * path
Definition: SDL_opengl_glext.h:3733
OS_GetPrecisionTime
uint64_t OS_GetPrecisionTime()
Definition: Win.cpp:19
uint64_t
unsigned __int64 uint64_t
Definition: alext.h:32
OS_FindFiles
std::vector< std::string > OS_FindFiles(const std::string &folder, const std::string &mask)
Definition: Lin.cpp:60
OS_Sleep
void OS_Sleep(int ms)
Definition: Lin.cpp:36
OS_MsgBox
void OS_MsgBox(const char *msg, const char *title)
Definition: Lin.cpp:8
OS_GetTime
unsigned int OS_GetTime()
Definition: Lin.cpp:12
OS_IfShiftPressed
bool OS_IfShiftPressed()
Definition: Lin.cpp:18
OS_GetAppString
bool OS_GetAppString(const char *path, char *out_string, int out_string_size)
Definition: Launcher.cpp:62
OS_IfCtrlPressed
bool OS_IfCtrlPressed()
Definition: Lin.cpp:23
val
GLuint GLfloat * val
Definition: SDL_opengl_glext.h:1495
OS_GetMouseCursorPos
Point OS_GetMouseCursorPos()
Definition: Lin.cpp:40
OS_SetAppInt
void OS_SetAppInt(const char *pKey, int val)
Definition: Lin.cpp:98
OS_SetAppString
void OS_SetAppString(const char *pKey, const char *pString)
Definition: Lin.cpp:93
string
GLsizei const GLchar *const * string
Definition: SDL_opengl_glext.h:691
Point
Definition: Point.h:3
OS_OpenConsole
bool OS_OpenConsole()
Definition: Lin.cpp:48
OS_WaitMessage
void OS_WaitMessage()
Definition: Lin.cpp:32
OS_GetAppInt
int OS_GetAppInt(const char *pKey, int uDefValue)
Definition: Lin.cpp:89
Strings.h