#include <iostream>
#include <fstream>
#include "common/wave_ex.h"
#include "datahash/datahash_text.h"
#include "datahash/datahash_util.h"
#include "hfield/heightfield.h"
#include "perf/perf.h"
#include "pgmppm/pgmppm.h"
#include "util/date.h"
#include "util/file.h"
Go to the source code of this file.
Typedefs | |
typedef pgmppm::color_t | color_t |
typedef std::map< float, color_t > | map_colors_t |
Functions | |
static void | verifyColor (int c, const char *name) |
static int | randDelta (void) throw () |
static void | rComp (int &i) throw () |
static color_t | randomize (const color_t &i_c) throw () |
static color_t | getColorForHeight (texture_t *t, float y) |
static void | setBaseTexture (texture_t *t) |
static void | addColor (color_t &sum, texture_t *t, int ix, int iz) |
static void | divideColor (color_t &sum, int count) |
static void | smooth (texture_t *t) |
static smart_ptr< texture_t > | createTexture (smart_ptr< hfield::Heightfield > &hfield, const Datahash *params) |
static color_t | writePixel (void *context, int x, int z) |
static void | writeTexture (const texture_t *t, const char *outputFile) |
int | main (int argc, const char *argv[]) |
typedef pgmppm::color_t color_t |
Definition at line 47 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
typedef std::map<float, color_t> map_colors_t |
Definition at line 50 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void verifyColor | ( | int | c, | |
const char * | name | |||
) | [static] |
Definition at line 138 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static int randDelta | ( | void | ) | throw () [static] |
Definition at line 151 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void rComp | ( | int & | i | ) | throw () [static] |
Definition at line 166 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
Definition at line 185 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static color_t getColorForHeight | ( | texture_t * | t, | |
float | y | |||
) | [static] |
Definition at line 201 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void setBaseTexture | ( | texture_t * | t | ) | [static] |
Definition at line 236 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void addColor | ( | color_t & | sum, | |
texture_t * | t, | |||
int | ix, | |||
int | iz | |||
) | [static] |
Definition at line 282 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void divideColor | ( | color_t & | sum, | |
int | count | |||
) | [static] |
Definition at line 299 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void smooth | ( | texture_t * | t | ) | [static] |
Definition at line 315 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static smart_ptr<texture_t> createTexture | ( | smart_ptr< hfield::Heightfield > & | hfield, | |
const Datahash * | params | |||
) | [static] |
Definition at line 366 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static color_t writePixel | ( | void * | context, | |
int | x, | |||
int | z | |||
) | [static] |
Definition at line 438 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
static void writeTexture | ( | const texture_t * | t, | |
const char * | outputFile | |||
) | [static] |
Definition at line 454 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.
int main | ( | int | argc, | |
const char * | argv[] | |||
) |
Definition at line 482 of file aesop-core/tool/terrain/terraTextureGen/main.cpp.