#ifndef __GRAPHICS_TYPES_H__ #define __GRAPHICS_TYPES_H__ typedef struct Color3 Color3; typedef struct Color4 Color4; struct Color3 { float red; float green; float blue; }; struct Color4 { float red; float green; float blue; float alpha; }; static inline Color3 Color3_withValues(float red, float green, float blue) { Color3 color; color.red = red; color.green = green; color.blue = blue; return color; } static inline Color4 Color4_withValues(float red, float green, float blue, float alpha) { Color4 color; color.red = red; color.green = green; color.blue = blue; color.alpha = alpha; return color; } #endif