2012-01-23 23:45:33 +00:00
|
|
|
#ifndef _PAYSAGES_SCENERY_H_
|
|
|
|
#define _PAYSAGES_SCENERY_H_
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Scenery management.
|
|
|
|
*
|
|
|
|
* This module handles all scenery components (terrain, water...) definitions and maintains
|
|
|
|
* a standard renderer.
|
|
|
|
*/
|
|
|
|
|
2012-01-24 15:47:49 +00:00
|
|
|
#include "atmosphere.h"
|
2012-01-23 23:45:33 +00:00
|
|
|
#include "camera.h"
|
|
|
|
#include "clouds.h"
|
|
|
|
#include "lighting.h"
|
|
|
|
#include "sky.h"
|
|
|
|
#include "terrain.h"
|
|
|
|
#include "textures.h"
|
2012-04-09 19:58:08 +00:00
|
|
|
#include "vegetation.h"
|
2012-01-23 23:45:33 +00:00
|
|
|
#include "water.h"
|
2012-04-28 13:36:37 +00:00
|
|
|
#include "pack.h"
|
2012-01-23 23:45:33 +00:00
|
|
|
#include "renderer.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-06-27 10:30:00 +00:00
|
|
|
typedef void (*SceneryCustomDataCallback)(PackStream* stream, void* data);
|
|
|
|
|
2012-01-23 23:45:33 +00:00
|
|
|
void sceneryInit();
|
2012-02-12 16:57:29 +00:00
|
|
|
void sceneryQuit();
|
|
|
|
|
2012-06-27 10:30:00 +00:00
|
|
|
void scenerySetCustomDataCallback(SceneryCustomDataCallback callback_save, SceneryCustomDataCallback callback_load, void* data);
|
|
|
|
|
2012-04-28 13:36:37 +00:00
|
|
|
void scenerySave(PackStream* stream);
|
|
|
|
void sceneryLoad(PackStream* stream);
|
2012-01-23 23:45:33 +00:00
|
|
|
|
2012-01-24 15:47:49 +00:00
|
|
|
void scenerySetAtmosphere(AtmosphereDefinition* atmosphere);
|
|
|
|
void sceneryGetAtmosphere(AtmosphereDefinition* atmosphere);
|
|
|
|
|
2012-01-23 23:45:33 +00:00
|
|
|
void scenerySetCamera(CameraDefinition* camera);
|
|
|
|
void sceneryGetCamera(CameraDefinition* camera);
|
|
|
|
|
|
|
|
void scenerySetClouds(CloudsDefinition* clouds);
|
|
|
|
void sceneryGetClouds(CloudsDefinition* clouds);
|
|
|
|
|
|
|
|
void scenerySetLighting(LightingDefinition* lighting);
|
|
|
|
void sceneryGetLighting(LightingDefinition* lighting);
|
|
|
|
|
|
|
|
void scenerySetSky(SkyDefinition* sky);
|
|
|
|
void sceneryGetSky(SkyDefinition* sky);
|
|
|
|
|
|
|
|
void scenerySetTerrain(TerrainDefinition* terrain);
|
|
|
|
void sceneryGetTerrain(TerrainDefinition* terrain);
|
|
|
|
|
|
|
|
void scenerySetTextures(TexturesDefinition* textures);
|
|
|
|
void sceneryGetTextures(TexturesDefinition* textures);
|
|
|
|
|
2012-04-09 19:58:08 +00:00
|
|
|
void scenerySetVegetation(VegetationDefinition* vegetation);
|
|
|
|
void sceneryGetVegetation(VegetationDefinition* vegetation);
|
|
|
|
|
2012-01-23 23:45:33 +00:00
|
|
|
void scenerySetWater(WaterDefinition* water);
|
|
|
|
void sceneryGetWater(WaterDefinition* water);
|
|
|
|
|
2012-01-29 21:45:58 +00:00
|
|
|
Renderer sceneryCreateStandardRenderer();
|
2012-01-24 13:16:20 +00:00
|
|
|
void sceneryRenderFirstPass(Renderer* renderer);
|
2012-01-23 23:45:33 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|