update glez

This commit is contained in:
nullifiedcat 2017-12-07 20:17:13 +03:00
parent 7ec57cd492
commit 36a6447adb

View File

@ -47,7 +47,16 @@ void glez_resize(int width, int height);
/* Helper functions */
glez_rgba_t glez_rgba(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
static inline glez_rgba_t
glez_rgba(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{
glez_rgba_t result;
result.r = (float) r / 255.0f;
result.g = (float) g / 255.0f;
result.b = (float) b / 255.0f;
result.a = (float) a / 255.0f;
return result;
}
/* Font-related functions */