Michaël Lemaire
1e922ccbce
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@235 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
36 lines
912 B
C
36 lines
912 B
C
#ifndef _PAYSAGES_ATMOSPHERE_H_
|
|
#define _PAYSAGES_ATMOSPHERE_H_
|
|
|
|
#include "shared/types.h"
|
|
#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();
|
|
void atmosphereSave(FILE* f, AtmosphereDefinition* definition);
|
|
void atmosphereLoad(FILE* f, AtmosphereDefinition* definition);
|
|
|
|
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
|