2019-09-30 08:14:43 +00:00
|
|
|
#include "../include/glkos.h"
|
|
|
|
|
|
|
|
void APIENTRY glVertexPackColor3fKOS(GLVertexKOS* vertex, float r, float g, float b) {
|
2019-11-12 17:28:39 +00:00
|
|
|
vertex->bgra[3] = 255;
|
|
|
|
vertex->bgra[2] = (r * 255.0f);
|
|
|
|
vertex->bgra[1] = (g * 255.0f);
|
|
|
|
vertex->bgra[0] = (b * 255.0f);
|
2019-09-30 08:14:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void APIENTRY glVertexPackColor4fKOS(GLVertexKOS* vertex, float r, float g, float b, float a) {
|
2019-11-12 17:28:39 +00:00
|
|
|
vertex->bgra[3] = (a * 255.0f);
|
|
|
|
vertex->bgra[2] = (r * 255.0f);
|
|
|
|
vertex->bgra[1] = (g * 255.0f);
|
|
|
|
vertex->bgra[0] = (b * 255.0f);
|
2019-09-30 08:14:43 +00:00
|
|
|
}
|