/
Zamar_Terrier
/
TigorEngineWeb2
Обзор
Документация
Войти
/
Zamar_Terrier
/
TigorEngineWeb2
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
include/TigorEngine.h
47 строк
1 KB
Ilia Zamaruev
wasi integration
16 фев 2026, 18:50
16 фев 2026, 18:50
17d4fd0
Код
Авторство
О чём код?
#ifndef GAMENGINE_H #define GAMENGINE_H #include "engine_includes.h" #include "gameObject.h" #ifdef __cplusplus extern "C" { #endif typedef void (*SomeKeyCallbackFunc)(void *wManager, int key, int scancode, int action, int mods); typedef void (*SomeMouseKeyCallbackFunc)(void *wManager, int button, int action, int mods); typedef void (*SomeFingerKeyCallbackFunc)(void *wManager, int fingerID, int action); void TEngineInitSystem(int width, int height, const char* name); void TEngineRenderGUI(); void TEngineSetDrawer(EngineDrawFunc draw); void TEngineSetUpdater(EngineUpdateFunc update); void TEngineSetKeyCallback(SomeKeyCallbackFunc callback); void TEngineSetMouseKeyCallback(SomeMouseKeyCallbackFunc callback); void TEngineSetFingerCallback(SomeFingerKeyCallbackFunc callback); void TEngineStartRender(); void TEngineStopRender(); void TEngineResumeRender(); void TEngineSetResizeWidow(int width, int height); bool TEngineDeviceIsMobile(); bool TEngineDeviceIsPC(); int TEngineGetMousePress(int Key); void TEngineGetCursorPos(double *xpos, double *ypos); void TEngineSetCursorPos(float xpos, float ypos); int TEngineGetKeyPress(int Key); const char *TEngineGetClipBoardString(); void TEngineSetClipBoardString(const char *string); void TEngineGetWindowSize(int *width, int *height); int TEngineGetMousePressState(); void *TEngineGetFingerPressState(); #ifdef __cplusplus } #endif #endif