Michaël Lemaire
c0f945fb27
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@511 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
23 lines
709 B
C
23 lines
709 B
C
#ifndef _PAYSAGES_CLOUDS_PRIVATE_H_
|
|
#define _PAYSAGES_CLOUDS_PRIVATE_H_
|
|
|
|
#include "public.h"
|
|
|
|
#define CLOUDS_MAX_LAYERS 6
|
|
#define MAX_SEGMENT_COUNT 100
|
|
|
|
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);
|
|
|
|
CloudsInfo cloudsGetLayerInfo(Renderer* renderer, CloudsLayerDefinition* layer, Vector3 location);
|
|
|
|
#endif
|