2013-01-22 20:50:37 +00:00
|
|
|
#ifndef _PAYSAGES_CLOUDS_PRIVATE_H_
|
|
|
|
#define _PAYSAGES_CLOUDS_PRIVATE_H_
|
|
|
|
|
|
|
|
#include "public.h"
|
|
|
|
|
|
|
|
#define CLOUDS_MAX_LAYERS 6
|
2013-01-30 21:36:49 +00:00
|
|
|
#define MAX_SEGMENT_COUNT 100
|
2013-01-22 20:50:37 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
Vector3 start;
|
|
|
|
Vector3 end;
|
|
|
|
double length;
|
|
|
|
} CloudSegment;
|
|
|
|
|
|
|
|
void cloudsLayerValidateDefinition(CloudsLayerDefinition* definition);
|
|
|
|
|
|
|
|
Color cloudsLayerFilterLight(CloudsLayerDefinition* definition, Renderer* renderer, Color light, Vector3 location, Vector3 light_location, Vector3 direction_to_light);
|
|
|
|
Color cloudsApplyLayer(CloudsLayerDefinition* definition, Color base, Renderer* renderer, Vector3 start, Vector3 end);
|
|
|
|
|
2013-01-27 19:57:43 +00:00
|
|
|
CloudsInfo cloudsGetLayerInfo(Renderer* renderer, CloudsLayerDefinition* layer, Vector3 location);
|
|
|
|
|
2013-01-22 20:50:37 +00:00
|
|
|
#endif
|