38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
#pragma once
|
|
|
|
#define ALLOC_PAGE_SIZE 256
|
|
|
|
typedef struct {
|
|
char *exePath;
|
|
bool hasWindow;
|
|
bool run;
|
|
bool gcUnload;
|
|
lua_State *luaState;
|
|
Vector2 resolution;
|
|
int logLevelInvalid;
|
|
Font defaultFont;
|
|
Material defaultMaterial;
|
|
int *RLGLcurrentShaderLocs;
|
|
/* Raylib GLFW input callback events. */
|
|
/* Window events. */
|
|
GLFWwindowsizefun raylibWindowSizeCallback;
|
|
GLFWwindowmaximizefun raylibWindowMaximizeCallback;
|
|
GLFWwindowiconifyfun raylibWindowIconifyCallback;
|
|
GLFWwindowfocusfun raylibWindowFocusCallback;
|
|
GLFWdropfun raylibWindowDropCallback;
|
|
/* Input events. */
|
|
GLFWkeyfun raylibKeyCallback;
|
|
GLFWcharfun raylibCharCallback;
|
|
GLFWmousebuttonfun raylibMouseButtonCallback;
|
|
GLFWcursorposfun raylibMouseCursorPosCallback;
|
|
GLFWscrollfun raylibMouseScrollCallback;
|
|
GLFWcursorenterfun raylibCursorEnterCallback;
|
|
GLFWjoystickfun raylibJoystickCallback;
|
|
} State;
|
|
|
|
extern State *state;
|
|
|
|
bool stateInit( int argn, const char **argc, const char *exePath );
|
|
void stateInitInterpret( int argn, const char **argc );
|
|
void stateFree();
|