summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-17 12:54:05 +0200
committerRay <[email protected]>2021-06-17 12:54:05 +0200
commit0e65e5877fc0fc5a9246ee14a7341be462b7a761 (patch)
tree7ef50a78ed05598d60612589afc7824b71be40dc /examples
parente07054d0d48161b31375ad83c6e505553bf8f204 (diff)
downloadraylib-0e65e5877fc0fc5a9246ee14a7341be462b7a761.tar.gz
raylib-0e65e5877fc0fc5a9246ee14a7341be462b7a761.zip
Update rlgl_standalone.c
Diffstat (limited to 'examples')
-rw-r--r--examples/others/rlgl_standalone.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index 47233afd..f3088903 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -65,6 +65,14 @@
#define RAYWHITE (Color){ 245, 245, 245, 255 } // My own White (raylib logo)
#define DARKGRAY (Color){ 80, 80, 80, 255 } // Dark Gray
+// Color, 4 components, R8G8B8A8 (32bit)
+typedef struct Color {
+ unsigned char r; // Color red value
+ unsigned char g; // Color green value
+ unsigned char b; // Color blue value
+ unsigned char a; // Color alpha value
+} Color;
+
// Camera type, defines a camera position/orientation in 3d space
typedef struct Camera {
Vector3 position; // Camera position