Testing a generator to output different draw triangle versions, more gamma correct blending
This commit is contained in:
27
platform.h
27
platform.h
@@ -11,13 +11,22 @@ struct OSInitArgs {
|
||||
int window_y;
|
||||
};
|
||||
|
||||
extern Image screen;
|
||||
extern bool keydown_a;
|
||||
extern bool keydown_b;
|
||||
extern bool keydown_f1;
|
||||
extern bool keydown_f2;
|
||||
extern bool keydown_f3;
|
||||
struct OS {
|
||||
Image screen;
|
||||
bool keydown_a;
|
||||
bool keydown_b;
|
||||
bool keydown_f1;
|
||||
bool keydown_f2;
|
||||
bool keydown_f3;
|
||||
bool app_is_running;
|
||||
|
||||
bool OS_GameLoop();
|
||||
void OS_Init(OSInitArgs);
|
||||
char* OS_ReadFile(const char* path);
|
||||
void init(OSInitArgs args);
|
||||
bool game_loop();
|
||||
|
||||
void message(int debug, const char *msg, ...);
|
||||
char *read_file(const char *path);
|
||||
|
||||
OS() = default;
|
||||
OS(OSInitArgs args) { init(args); }
|
||||
char os_internal_data[1024];
|
||||
};
|
||||
Reference in New Issue
Block a user