Add texture to objects

This commit is contained in:
Eryn Wells 2013-09-07 22:22:27 -07:00
parent 7b30584ba5
commit ca13877c19
2 changed files with 30 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#define __OBJECT_H
#include "basics.h"
#include "texture.h"
typedef enum {
@ -24,6 +25,8 @@ void object_destroy(Object *obj);
Vector3 object_get_location(Object *obj);
void object_set_location(Object *obj, Vector3 location);
Texture *object_get_texture(Object *obj);
void object_set_texture(Object *obj, Texture *tex);
int object_does_intersect(Object *obj, Ray ray, float **t);