Selaa lähdekoodia

Introduce RGBA type

rexim 4 vuotta sitten
vanhempi
commit
3fefdeec9b
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  1. 6 0
      oglt_math.h

+ 6 - 0
oglt_math.h

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