2021-03-08 15:16:46 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef GINT
|
|
|
|
#include <gint/display.h>
|
|
|
|
#endif /* GINT */
|
|
|
|
|
|
|
|
#ifdef RAYLIB
|
|
|
|
#include <raylib.h>
|
2021-11-16 23:18:35 +01:00
|
|
|
/* colors */
|
2021-03-08 15:16:46 +01:00
|
|
|
#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-11-16 23:18:35 +01:00
|
|
|
/* display size */
|
|
|
|
#define DWIDTH 396
|
|
|
|
#define DHEIGHT 224
|
2021-11-17 14:46:01 +01:00
|
|
|
/* macros */
|
|
|
|
#define C_RGB(r, g, b) (Color){r*255/31, g*255/31, b*255/31, 255}
|
|
|
|
/* simple functions */
|
2021-03-08 16:41:39 +01:00
|
|
|
#define dclear(c) ClearBackground(c)
|
2021-11-16 23:18:35 +01:00
|
|
|
#define drect(x1, y1, x2, y2, c) \
|
2021-11-17 15:34:28 +01:00
|
|
|
DrawRectangle(x1, y1, (x2) - (x1) + 1, (y2) - (y1) + 1, c)
|
2021-11-17 14:46:01 +01:00
|
|
|
/* dummy types */
|
|
|
|
typedef int bopti_image_t;
|
|
|
|
typedef int font_t;
|
2021-03-08 15:16:46 +01:00
|
|
|
#endif /* RAYLIB */
|
|
|
|
|
2021-11-16 23:18:35 +01:00
|
|
|
/* prototypes */
|
2021-11-17 14:46:01 +01:00
|
|
|
void rDisplayInit(void);
|
|
|
|
void rDisplayDeinit(void);
|
2021-03-08 16:41:39 +01:00
|
|
|
void rDrawBegin(void);
|
|
|
|
void rDrawEnd(void);
|