|
@@ -12,6 +12,10 @@
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
|
+/***********************************************************************************************************************
|
|
|
+ * Global variables
|
|
|
+ **********************************************************************************************************************/
|
|
|
+
|
|
|
extern SDL_Window *window;
|
|
|
extern SDL_Renderer *renderer;
|
|
|
extern bool isRunning;
|
|
@@ -20,14 +24,21 @@ extern SDL_Texture *frameBufferTexture;
|
|
|
extern int windowWidth;
|
|
|
extern int windowHeight;
|
|
|
|
|
|
-//
|
|
|
+/***********************************************************************************************************************
|
|
|
+ * Prototypes
|
|
|
+ **********************************************************************************************************************/
|
|
|
|
|
|
+/* --- Window functions --- */
|
|
|
bool initialiseWindow(bool fullScreen);
|
|
|
-
|
|
|
void destroy_window();
|
|
|
+void renderFrameBuffer();
|
|
|
+
|
|
|
+/* --- Drawing functions --- */
|
|
|
+void drawPixel(uint32_t x, uint32_t y, uint32_t colour);
|
|
|
|
|
|
void clearFrameBuffer(uint32_t colour);
|
|
|
void drawGrid(int spacing, uint32_t colour);
|
|
|
void drawRectangle(uint32_t x, uint32_t y, uint32_t w, uint32_t h, uint32_t colour);
|
|
|
-void renderFrameBuffer();
|
|
|
+
|
|
|
+
|
|
|
#endif /* THREEDENGINE_SOURCE_INCLUDE_DISPLAY_H */
|