cleanup
This commit is contained in:
parent
0303e689f7
commit
6511864509
|
@ -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);
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#include "raygint/keyboard.h"
|
||||
|
||||
#ifdef RAYLIB
|
||||
void clearevents(void) {}
|
||||
#endif
|
Loading…
Reference in New Issue