Add colors black, red, green and blue.
This commit is contained in:
parent
bdb14fc3ee
commit
0303e689f7
|
@ -4,6 +4,10 @@ desktop. Work in progress. Following are the supported define and functions.
|
|||
|
||||
## `raygint/display.h`
|
||||
Macros:
|
||||
* `C_BLACK`
|
||||
* `C_BLUE`
|
||||
* `C_GREEN`
|
||||
* `C_RED`
|
||||
* `C_WHITE`
|
||||
* `DWIDTH`
|
||||
* `DHEIGHT`
|
||||
|
|
|
@ -8,9 +8,13 @@
|
|||
#include <raylib.h>
|
||||
/* 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(x, y, w, h, c) DrawRectangle(x, y, (x) - (w), (y) - (h), c)
|
||||
#define drect(x1, y1, x2, y2, c) DrawRectangle(x1, y1, (x2) - (x1), (y2) - (y1), c)
|
||||
#endif /* RAYLIB */
|
||||
|
||||
#ifdef RAYLIB_CG
|
||||
|
|
Loading…
Reference in New Issue