
#ifndef COMMON_H_INCLUDED
#define COMMON_H_INCLUDED

#include <string>

// -------------------------
// --- donnees programme ---
// -------------------------

#define FPS_TEMPO       50
#define FPS_TICK        20  // 1000 milisecondes / 50
#define FPS_RATIO       0.4 // (1/ 50) * 20


// -----------------------
// --- les répertoires ---
// -----------------------

// au singulier !
const std::string PATH_INTERFACE    = "donnees/interface/";
const std::string PATH_IMAGE        = "donnees/image/";
const std::string PATH_MESH         = "donnees/mesh/";
const std::string PATH_MESH_ZONE    = "donnees/mesh/zone/";

// --------------------
// --- code touches ---
// --------------------

enum {
    CLICK_NULL, CLICK_ON, CLICK_QUITTER
};

// -------------------------
// --- mode post process ---
// -------------------------

enum {PP_NULL, PP_ALIASING, PP_FOG, PP_RAIN, PP_SNOW};

enum {
    PPOUTLINE_NULL, PPOUTLINE_RED, PPOUTLINE_ORANGE, PPOUTLINE_WHITE,
    PPOUTLINE_YELOW, PPOUTLINE_GREEN, PPOUTLINE_BLACK, PPOUTLINE_AMBER
};

// ----------------
// --- type eau ---
// ----------------

enum {WATER_LAKE_LOW, WATER_LAKE_MED, WATER_LAKE_HIG, WATER_SEA_LOW, WATER_SEA_MED};


// ------------------
// --- type grass ---
// ------------------

enum {GRASS_GEOMETRY, GRASS_INSTANCED, GRASS_COMP};

// ---------------
// --- ref ile ---
// ---------------

enum {ISLE_NO, ISLE_SO, ISLE_SE, ISLE_NE};

const OVec3_f gl_pos_ile_no(-100, 100, 25);
const OVec3_f gl_pos_ile_so(-100,-100, 25);
const OVec3_f gl_pos_ile_se( 100,-100, 25);
const OVec3_f gl_pos_ile_ne( 100, 160, 25);

const float gl_dist_camera_isle = 100.0f;


#endif
