#ifndef _basis_h_ #define _basis_h_ #include /* Copyright (c) 2013-2021 Devine Lu Linvega 2018 web port by rezmason 2021 C89 port by rezmason Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE. */ /* A lot of "boilerplate" goes into an DSL game. Basis is where most of that goes. Basis also exposes a game loop function. */ int Basis_Init(char *name, int chunkSize, int *windowW, int *windowH, int fitToScreen); void Basis_Halt(void); void Basis_Quit(void); SDL_Renderer *Basis_GetRenderer(void); void Basis_Run(void (*processEvent)(SDL_Event *), void (*resize)(int, int), void (*update)(double, double), void (*render)(SDL_Renderer *)); #endif