Files
cell/source/render.c
2024-11-30 12:12:13 -06:00

13 lines
238 B
C

#include "render.h"
viewstate globalview = {0};
float *rgba2floats(float *r, struct rgba c)
{
r[0] = (float)c.r / RGBA_MAX;
r[1] = (float)c.g / RGBA_MAX;
r[2] = (float)c.b / RGBA_MAX;
r[3] = (float)c.a / RGBA_MAX;
return r;
}