Stardew Engine
Loading...
Searching...
No Matches
main.h File Reference
#include "DrawContext.h"
#include "InputContext.h"
#include "Network.h"
#include <stdbool.h>
Include dependency graph for main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CommandLineArgs
 

Typedefs

typedef void(* GameInitFn) (InputContext *, DrawContext *)
 
typedef void(* ArgHandlerFn) (int argc, char **argv, int onArg)
 

Functions

int Mn_GetScreenWidth ()
 
int Mn_GetScreenHeight ()
 
int EngineStart (int argc, char **argv, GameInitFn init)
 
DrawContextGetDrawContext ()
 
InputContextGetInputContext ()
 
void Engine_ParseCmdArgs (int argc, char **argv, ArgHandlerFn handlerFn)
 

Variables

struct CommandLineArgs gCmdArgs
 

Typedef Documentation

◆ ArgHandlerFn

typedef void(* ArgHandlerFn) (int argc, char **argv, int onArg)

◆ 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 
)

◆ GetDrawContext()

DrawContext * GetDrawContext ( )

◆ GetInputContext()

InputContext * GetInputContext ( )

◆ Mn_GetScreenHeight()

int Mn_GetScreenHeight ( )

◆ Mn_GetScreenWidth()

int Mn_GetScreenWidth ( )

Variable Documentation

◆ gCmdArgs

struct CommandLineArgs gCmdArgs
extern