Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #ifndef RS_NOISE_H
  2. #define RS_NOISE_H
  3.  
  4. #include "rsgame.h"
  5.  
  6. //void rs_model_create_pyramid(rs_vbo_t* vbo);
  7.  
  8. float rs_perlin(float i, float j);
  9. float rs_quad_noise(float i, float j);
  10.  
  11. float rs_noise(int x, int y);
  12. float rs_noise_for_perlin(int x, int y);
  13.  
  14. void rs_perlin_configure(float freq, int octaves, float persistence, float seed, int tex_size);
  15.  
  16. typedef struct rs_perlin_conf_t {
  17.     float freq;
  18.     int octaves;
  19.     float persistence;
  20.     float seed;
  21.     int period;
  22.     int tex_size;
  23. } rs_perlin_conf_t;
  24.  
  25. extern rs_perlin_conf_t rs_perlin_conf;
  26.  
  27. #endif
  28.