2017-04-26 17:20:15 +02:00
|
|
|
#ifndef _STRUCTS_H
|
|
|
|
#define _STRUCTS_H
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
*
|
|
|
|
* Vertex - 3D coordinate
|
|
|
|
*
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
typedef struct {
|
2017-04-26 18:03:02 +02:00
|
|
|
float x, y, z ;
|
2017-04-26 17:20:15 +02:00
|
|
|
} Vertex;
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
*
|
|
|
|
* Color (R,G,B)
|
|
|
|
*
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
typedef struct {
|
2017-04-26 18:03:02 +02:00
|
|
|
float r, g, b ;
|
2017-04-26 17:20:15 +02:00
|
|
|
} Rgb;
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
*
|
|
|
|
* Ray - 3D coordinate
|
|
|
|
*
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
typedef struct {
|
2017-04-26 18:03:02 +02:00
|
|
|
float x, y, z;
|
2017-04-26 17:20:15 +02:00
|
|
|
} Ray;
|
|
|
|
|
|
|
|
#endif
|