Browse Source

Introduce RGBA type

rexim 4 years ago
parent
commit
3fefdeec9b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      oglt_math.h

+ 6 - 0
oglt_math.h

@@ -7,6 +7,12 @@ typedef struct {
     float x, y;
     float x, y;
 } V2;
 } V2;
 
 
+#define RGBA_COUNT 4
+
+typedef struct {
+    float r, g, b, a;
+} RGBA;
+
 static inline float lerp(float a, float b, float t)
 static inline float lerp(float a, float b, float t)
 {
 {
     return a + (b - a) * t;
     return a + (b - a) * t;