#pragma once #include #include // TODO: Define an isogfx-gl backend library. Remove all these callbacks. typedef struct IsoGfx IsoGfx; typedef struct IsoGfxApp IsoGfxApp; typedef struct IsoGfxAppState IsoGfxAppState; typedef struct IsoGfxApp { int pixel_scale; // Use 0 or 1 for 1:1 scaling. IsoGfxAppState* state; bool (*init)(IsoGfxAppState*, IsoGfx*, int argc, const char** argv); void (*shutdown)(IsoGfxAppState*, IsoGfx*); void (*update)(IsoGfxAppState*, IsoGfx*, double t, double dt); void (*render)(IsoGfxAppState*, IsoGfx*); } IsoGfxApp; void iso_run(int argc, const char** argv, IsoGfxApp*);