2020-08-21 00:13:11 -04:00

20 lines
702 B
C

#ifndef DATA_STRUCTURES_LIGHTS_H
#define DATA_STRUCTURES_LIGHTS_H
#include "tuples.h"
typedef struct LIGHTS_PointLight {
TUPLES_Point position;
TUPLES_Color intensity;
} LIGHTS_PointLight;
LIGHTS_PointLight* LIGHTS_new_pointlight(TUPLES_Point p, TUPLES_Color c);
void LIGHTS_init_pointlight(LIGHTS_PointLight* pl, TUPLES_Point p, TUPLES_Color c);
void LIGHTS_destroy_pointlight(LIGHTS_PointLight* pl);
void LIGHTS_delete_pointlight(LIGHTS_PointLight* pl);
void LIGHTS_copy(LIGHTS_PointLight* dest, const LIGHTS_PointLight* src);
TUPLES_Point LIGHTS_get_origin(const LIGHTS_PointLight* light);
TUPLES_Color LIGHTS_get_color(const LIGHTS_PointLight* light);
#endif //DATA_STRUCTURES_LIGHTS_H