2021-03-08 15:16:46 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef GINT
|
|
|
|
#include <gint/display.h>
|
|
|
|
#endif /* GINT */
|
|
|
|
|
|
|
|
#ifdef RAYLIB
|
|
|
|
#include <raylib.h>
|
|
|
|
/* Colors. */
|
|
|
|
#define C_WHITE WHITE
|
2021-03-08 16:54:42 +01:00
|
|
|
#define C_BLACK BLACK
|
|
|
|
#define C_RED RED
|
|
|
|
#define C_GREEN GREEN
|
|
|
|
#define C_BLUE BLUE
|
2021-03-08 15:16:46 +01:00
|
|
|
/* Simple functions. */
|
2021-03-08 16:41:39 +01:00
|
|
|
#define dclear(c) ClearBackground(c)
|
2021-03-08 16:54:42 +01:00
|
|
|
#define drect(x1, y1, x2, y2, c) DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c)
|
2021-03-08 15:16:46 +01:00
|
|
|
#endif /* RAYLIB */
|
|
|
|
|
|
|
|
#ifdef RAYLIB_CG
|
|
|
|
/* Display size. */
|
|
|
|
#define DWIDTH 396
|
|
|
|
#define DHEIGHT 224
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Function prototypes. */
|
|
|
|
void rInitDisplay(void);
|
|
|
|
void rDeinitDisplay(void);
|
2021-03-08 16:41:39 +01:00
|
|
|
void rDrawBegin(void);
|
|
|
|
void rDrawEnd(void);
|
2021-03-08 15:16:46 +01:00
|
|
|
void dupdate(void);
|