Color is three unit8_t's instead of three floats

This commit is contained in:
Eryn Wells 2013-09-06 23:03:08 -07:00
parent 1f2e7c97d6
commit 4e27e4e960
2 changed files with 10 additions and 7 deletions

View file

@ -9,6 +9,8 @@
#ifndef __BASICS_H
#define __BASICS_H
#include <stdint.h>
typedef struct {
float x, y, z;
@ -43,7 +45,7 @@ Ray ray_init(Vector3 location, Vector3 direction);
typedef struct {
float red, green, blue;
uint8_t red, green, blue, alpha;
} Color;