git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@232 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
32 lines
550 B
C
32 lines
550 B
C
#ifndef _PAYSAGES_RENDERER_H_
|
|
#define _PAYSAGES_RENDERER_H_
|
|
|
|
#include "shared/types.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct Renderer Renderer;
|
|
|
|
struct Renderer
|
|
{
|
|
/* Quality configuration */
|
|
int render_quality;
|
|
Vector3 camera_location;
|
|
|
|
/* Lighting related */
|
|
Color (*filterLight)(Renderer* renderer, Color light_color, Vector3 at_location, Vector3 light_location, Vector3 direction_to_light);
|
|
|
|
/* Custom data */
|
|
void* customData[10];
|
|
};
|
|
|
|
Renderer rendererGetFake();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|