Typedefs | Functions

aesop-core/tool/terrain/terraTextureGen/main.cpp File Reference

#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"
Include dependency graph for aesop-core/tool/terrain/terraTextureGen/main.cpp:

Go to the source code of this file.


typedef pgmppm::color_t color_t
typedef std::map< float, color_tmap_colors_t


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 Documentation

typedef std::map<float, color_t> map_colors_t

Function Documentation

static void verifyColor ( int  c,
const char *  name 
) [static]
static int randDelta ( void   )  throw () [static]
static void rComp ( int &  i  )  throw () [static]
static color_t randomize ( const color_t i_c  )  throw () [static]
static color_t getColorForHeight ( texture_t *  t,
float  y 
) [static]
static void setBaseTexture ( texture_t *  t  )  [static]
static void addColor ( color_t sum,
texture_t *  t,
int  ix,
int  iz 
) [static]
static void divideColor ( color_t sum,
int  count 
) [static]
static void smooth ( texture_t *  t  )  [static]
static smart_ptr<texture_t> createTexture ( smart_ptr< hfield::Heightfield > &  hfield,
const Datahash params 
) [static]
static color_t writePixel ( void *  context,
int  x,
int  z 
) [static]
static void writeTexture ( const texture_t *  t,
const char *  outputFile 
) [static]
int main ( int  argc,
const char *  argv[]