Stardew Engine
Loading...
Searching...
No Matches
main.c File Reference
#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"
Include dependency graph for main.c:

Macros

#define SCR_WIDTH   640
 
#define SCR_HEIGHT   480
 
#define TARGET_FPS   60
 

Typedefs

typedef void(* GameInitFn) (InputContext *, DrawContext *)
 

Functions

DrawContextGetDrawContext ()
 
InputContextGetInputContext ()
 
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
 

Macro Definition Documentation

◆ SCR_HEIGHT

#define SCR_HEIGHT   480

◆ SCR_WIDTH

#define SCR_WIDTH   640

◆ TARGET_FPS

#define TARGET_FPS   60

Typedef Documentation

◆ GameInitFn

typedef void(* GameInitFn) (InputContext *, DrawContext *)

Function Documentation

◆ Engine_ParseCmdArgs()

void Engine_ParseCmdArgs ( int  argc,
char **  argv,
ArgHandlerFn  handlerFn 
)

◆ EngineStart()

int EngineStart ( int  argc,
char **  argv,
GameInitFn  init 
)

◆ FramebufferSizeCallback()

void FramebufferSizeCallback ( GLFWwindow *  window,
int  width,
int  height 
)

◆ GameInit()

void GameInit ( InputContext pIC,
DrawContext pDC 
)

◆ GetDrawContext()

DrawContext * GetDrawContext ( )

◆ GetInputContext()

InputContext * GetInputContext ( )

◆ joystick_callback()

void joystick_callback ( int  jid,
int  event 
)

◆ key_callback()

void key_callback ( GLFWwindow *  window,
int  key,
int  scancode,
int  action,
int  mods 
)

◆ Mn_GetScreenHeight()

int Mn_GetScreenHeight ( )

◆ Mn_GetScreenWidth()

int Mn_GetScreenWidth ( )

◆ MouseBtnCallback()

void MouseBtnCallback ( GLFWwindow *  window,
int  button,
int  action,
int  mods 
)

◆ MouseCallback()

void MouseCallback ( GLFWwindow *  window,
double  xposIn,
double  yposIn 
)

◆ ScrollCallback()

void ScrollCallback ( GLFWwindow *  window,
double  xoffset,
double  yoffset 
)

Variable Documentation

◆ gCmdArgs

struct CommandLineArgs gCmdArgs

◆ gDrawContext

DrawContext gDrawContext

◆ gInputContext

InputContext gInputContext