#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 (IN int c, IN const char *name) |
| static int | randDelta (void) throw () |
| static void | rComp (IO int &i) throw () |
| static color_t | randomize (IN const color_t &i_c) throw () |
| static color_t | getColorForHeight (IN texture_t *t, IN float y) |
| static void | setBaseTexture (IN texture_t *t) |
| static void | addColor (IO color_t &sum, IN texture_t *t, IN int ix, IN int iz) |
| static void | divideColor (IO color_t &sum, IN int count) |
| static void | smooth (IN texture_t *t) |
| static smart_ptr< texture_t > | createTexture (IN smart_ptr< hfield::Heightfield > &hfield, IN const Datahash *params) |
| static color_t | writePixel (IN void *context, IN int x, IN int z) |
| static void | writeTexture (IN const texture_t *t, IN const char *outputFile) |
| int | main (IN int argc, IN const char *argv[]) |
| typedef pgmppm::color_t color_t |
Definition at line 47 of file terrain/terraTextureGen/main.cpp.
| typedef std::map<float, color_t> map_colors_t |
Definition at line 50 of file terrain/terraTextureGen/main.cpp.
| static void verifyColor | ( | IN int | c, | |
| IN const char * | name | |||
| ) | [static] |
Definition at line 138 of file terrain/terraTextureGen/main.cpp.
| static int randDelta | ( | void | ) | throw () [static] |
Definition at line 151 of file terrain/terraTextureGen/main.cpp.
| static void rComp | ( | IO int & | i | ) | throw () [static] |
Definition at line 166 of file terrain/terraTextureGen/main.cpp.
Definition at line 185 of file terrain/terraTextureGen/main.cpp.
| static color_t getColorForHeight | ( | IN texture_t * | t, | |
| IN float | y | |||
| ) | [static] |
Definition at line 201 of file terrain/terraTextureGen/main.cpp.
| static void setBaseTexture | ( | IN texture_t * | t | ) | [static] |
Definition at line 236 of file terrain/terraTextureGen/main.cpp.
| static void addColor | ( | IO color_t & | sum, | |
| IN texture_t * | t, | |||
| IN int | ix, | |||
| IN int | iz | |||
| ) | [static] |
Definition at line 282 of file terrain/terraTextureGen/main.cpp.
| static void divideColor | ( | IO color_t & | sum, | |
| IN int | count | |||
| ) | [static] |
Definition at line 299 of file terrain/terraTextureGen/main.cpp.
| static void smooth | ( | IN texture_t * | t | ) | [static] |
Definition at line 315 of file terrain/terraTextureGen/main.cpp.
| static smart_ptr<texture_t> createTexture | ( | IN smart_ptr< hfield::Heightfield > & | hfield, | |
| IN const Datahash * | params | |||
| ) | [static] |
Definition at line 366 of file terrain/terraTextureGen/main.cpp.
| static color_t writePixel | ( | IN void * | context, | |
| IN int | x, | |||
| IN int | z | |||
| ) | [static] |
Definition at line 438 of file terrain/terraTextureGen/main.cpp.
| static void writeTexture | ( | IN const texture_t * | t, | |
| IN const char * | outputFile | |||
| ) | [static] |
Definition at line 454 of file terrain/terraTextureGen/main.cpp.
| int main | ( | IN int | argc, | |
| IN const char * | argv[] | |||
| ) |
Definition at line 482 of file terrain/terraTextureGen/main.cpp.
1.7.1