This commit is contained in:
KikooDX 2021-11-16 23:18:35 +01:00
parent 0303e689f7
commit 6511864509
3 changed files with 14 additions and 13 deletions

View File

@ -6,24 +6,22 @@
#ifdef RAYLIB
#include <raylib.h>
/* Colors. */
/* colors */
#define C_WHITE WHITE
#define C_BLACK BLACK
#define C_RED RED
#define C_GREEN GREEN
#define C_BLUE BLUE
/* Simple functions. */
#define dclear(c) ClearBackground(c)
#define drect(x1, y1, x2, y2, c) DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c)
#endif /* RAYLIB */
#ifdef RAYLIB_CG
/* Display size. */
/* display size */
#define DWIDTH 396
#define DHEIGHT 224
#endif
/* Simple functions. */
#define dclear(c) ClearBackground(c)
#define drect(x1, y1, x2, y2, c) \
DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c)
#endif /* RAYLIB */
/* Function prototypes. */
/* prototypes */
void rInitDisplay(void);
void rDeinitDisplay(void);
void rDrawBegin(void);

View File

@ -5,9 +5,7 @@
#endif /* GINT */
#ifdef RAYLIB
/* Simple functions. */
#define keydown(x) IsKeyDown(x)
#define dclear(x) ClearBackground(x)
/* Useless functions, do nothing. */
void clearevents(void) {};
void clearevents(void);
#endif /* RAYLIB */

5
src/keyboard.c Normal file
View File

@ -0,0 +1,5 @@
#include "raygint/keyboard.h"
#ifdef RAYLIB
void clearevents(void) {}
#endif