GLdc/GL/util.c
Luke Benstead fe616028bb X86
2021-04-09 15:24:47 +00:00

16 lines
489 B
C

#include "private.h"
void APIENTRY glVertexPackColor3fKOS(GLVertexKOS* vertex, float r, float g, float b) {
vertex->bgra[3] = 255;
vertex->bgra[2] = (r * 255.0f);
vertex->bgra[1] = (g * 255.0f);
vertex->bgra[0] = (b * 255.0f);
}
void APIENTRY glVertexPackColor4fKOS(GLVertexKOS* vertex, float r, float g, float b, float a) {
vertex->bgra[3] = (a * 255.0f);
vertex->bgra[2] = (r * 255.0f);
vertex->bgra[1] = (g * 255.0f);
vertex->bgra[0] = (b * 255.0f);
}