Added some defineable types

This commit is contained in:
2021-02-23 08:28:20 +11:00
parent 4f02128553
commit 700a1b8c7f
7 changed files with 55 additions and 33 deletions

View File

@@ -7,6 +7,12 @@
#include <malloc.h>
#include <stdint.h>
#ifndef PLATFORMINPUT_T
#define PLATFORMINPUT_T void
#endif
/** Definition for the platform's input source */
typedef PLATFORMINPUT_T platforminput_t;
/**
* Contains information about the running platform. Essentially this is just
* some context as to what is running the game engine itself. It's mostly for
@@ -19,4 +25,8 @@ typedef struct {
/** Dimensions of the screen (in pixels) */
uint32_t screenWidth, screenHeight;
int32_t inputSourceCount;
float *inputValues;
platforminput_t *inputSource;
} platform_t;