Color is three unit8_t's instead of three floats
This commit is contained in:
parent
1f2e7c97d6
commit
4e27e4e960
2 changed files with 10 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue