2012-01-24 15:47:49 +00:00
|
|
|
#ifndef _PAYSAGES_ATMOSPHERE_H_
|
|
|
|
#define _PAYSAGES_ATMOSPHERE_H_
|
|
|
|
|
|
|
|
#include "shared/types.h"
|
2012-04-22 17:12:39 +00:00
|
|
|
#include "pack.h"
|
2012-01-24 15:47:49 +00:00
|
|
|
#include "lighting.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
double distance_near;
|
|
|
|
double distance_far;
|
|
|
|
double full_mask;
|
|
|
|
int auto_lock_on_haze;
|
|
|
|
Color color;
|
|
|
|
} AtmosphereDefinition;
|
|
|
|
|
|
|
|
void atmosphereInit();
|
2012-02-12 16:57:29 +00:00
|
|
|
void atmosphereQuit();
|
2012-04-22 17:12:39 +00:00
|
|
|
void atmosphereSave(PackStream* stream, AtmosphereDefinition* definition);
|
|
|
|
void atmosphereLoad(PackStream* stream, AtmosphereDefinition* definition);
|
2012-01-24 15:47:49 +00:00
|
|
|
|
|
|
|
AtmosphereDefinition atmosphereCreateDefinition();
|
|
|
|
void atmosphereDeleteDefinition(AtmosphereDefinition* definition);
|
|
|
|
void atmosphereCopyDefinition(AtmosphereDefinition* source, AtmosphereDefinition* destination);
|
|
|
|
void atmosphereValidateDefinition(AtmosphereDefinition* definition);
|
|
|
|
|
|
|
|
Color atmosphereApply(AtmosphereDefinition* definition, Renderer* renderer, Vector3 location, Color base);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|