refactors & viewport fix

This commit is contained in:
2022-11-16 09:20:44 +11:00
parent 9ba7a3bda8
commit a4cd5094b1
9 changed files with 61 additions and 40 deletions

5
draw.h
View File

@ -3,7 +3,7 @@
#define DISPLAY_SCALE 0.8889
#include "maths.h"
#include "util.h"
#include <stdint.h>
typedef struct SDL_Window SDL_Window;
@ -34,6 +34,9 @@ void QuitDraw(void);
// height of the canvas in actual pixels.
size GetDrawSizeInPixels(void);
// Call on resize for backends that need manual viewport resizing.
void SetDrawViewport(size size);
// Set the current draw colour.
//
// Params: