|
Stardew Engine
|
#include "main.h"#include <glad/glad.h>#include <GLFW/glfw3.h>#include <stdio.h>#include "DynArray.h"#include "GameFramework.h"#include "XMLUIGameLayer.h"#include "ImageFileRegstry.h"#include "Atlas.h"#include "Widget.h"#include "Scripting.h"#include <string.h>#include "PlatformDefs.h"#include <libxml/parser.h>#include "Log.h"#include "Network.h"#include "AssertLib.h"
Macros | |
| #define | SCR_WIDTH 640 |
| #define | SCR_HEIGHT 480 |
| #define | TARGET_FPS 60 |
Typedefs | |
| typedef void(* | GameInitFn) (InputContext *, DrawContext *) |
Functions | |
| DrawContext * | GetDrawContext () |
| InputContext * | GetInputContext () |
| int | Mn_GetScreenWidth () |
| int | Mn_GetScreenHeight () |
| void | FramebufferSizeCallback (GLFWwindow *window, int width, int height) |
| void | MouseCallback (GLFWwindow *window, double xposIn, double yposIn) |
| void | ScrollCallback (GLFWwindow *window, double xoffset, double yoffset) |
| void | MouseBtnCallback (GLFWwindow *window, int button, int action, int mods) |
| void | key_callback (GLFWwindow *window, int key, int scancode, int action, int mods) |
| void | joystick_callback (int jid, int event) |
| void | Engine_ParseCmdArgs (int argc, char **argv, ArgHandlerFn handlerFn) |
| int | EngineStart (int argc, char **argv, GameInitFn init) |
| void | GameInit (InputContext *pIC, DrawContext *pDC) |
Variables | |
| InputContext | gInputContext |
| DrawContext | gDrawContext |
| struct CommandLineArgs | gCmdArgs |
| #define SCR_HEIGHT 480 |
| #define SCR_WIDTH 640 |
| #define TARGET_FPS 60 |
| typedef void(* GameInitFn) (InputContext *, DrawContext *) |
| void Engine_ParseCmdArgs | ( | int | argc, |
| char ** | argv, | ||
| ArgHandlerFn | handlerFn | ||
| ) |
| int EngineStart | ( | int | argc, |
| char ** | argv, | ||
| GameInitFn | init | ||
| ) |
| void FramebufferSizeCallback | ( | GLFWwindow * | window, |
| int | width, | ||
| int | height | ||
| ) |
| void GameInit | ( | InputContext * | pIC, |
| DrawContext * | pDC | ||
| ) |
| DrawContext * GetDrawContext | ( | ) |
| InputContext * GetInputContext | ( | ) |
| void joystick_callback | ( | int | jid, |
| int | event | ||
| ) |
| void key_callback | ( | GLFWwindow * | window, |
| int | key, | ||
| int | scancode, | ||
| int | action, | ||
| int | mods | ||
| ) |
| int Mn_GetScreenHeight | ( | ) |
| int Mn_GetScreenWidth | ( | ) |
| void MouseBtnCallback | ( | GLFWwindow * | window, |
| int | button, | ||
| int | action, | ||
| int | mods | ||
| ) |
| void MouseCallback | ( | GLFWwindow * | window, |
| double | xposIn, | ||
| double | yposIn | ||
| ) |
| void ScrollCallback | ( | GLFWwindow * | window, |
| double | xoffset, | ||
| double | yoffset | ||
| ) |
| struct CommandLineArgs gCmdArgs |
| DrawContext gDrawContext |
| InputContext gInputContext |