30 lines
585 B
C
30 lines
585 B
C
#pragma once
|
|
|
|
#ifdef GINT
|
|
#include <gint/display.h>
|
|
#endif /* GINT */
|
|
|
|
#ifdef RAYLIB
|
|
#include <raylib.h>
|
|
/* colors */
|
|
#define C_WHITE WHITE
|
|
#define C_BLACK BLACK
|
|
#define C_RED RED
|
|
#define C_GREEN GREEN
|
|
#define C_BLUE BLUE
|
|
/* display size */
|
|
#define DWIDTH 396
|
|
#define DHEIGHT 224
|
|
/* Simple functions. */
|
|
#define dclear(c) ClearBackground(c)
|
|
#define drect(x1, y1, x2, y2, c) \
|
|
DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c)
|
|
#endif /* RAYLIB */
|
|
|
|
/* prototypes */
|
|
void rInitDisplay(void);
|
|
void rDeinitDisplay(void);
|
|
void rDrawBegin(void);
|
|
void rDrawEnd(void);
|
|
void dupdate(void);
|