Add texture to objects
This commit is contained in:
parent
7b30584ba5
commit
ca13877c19
2 changed files with 30 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue