stuf
This commit is contained in:
parent
ea1f4364f1
commit
78868f5b52
13 changed files with 267 additions and 10 deletions
32
engine/src/graph/noise.h
Normal file
32
engine/src/graph/noise.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#pragma once
|
||||
#include "window.h"
|
||||
enum NOISETYPE {
|
||||
CLOUD,
|
||||
RANDOM,
|
||||
|
||||
};
|
||||
enum DIMENSION {
|
||||
ONE,TWO,THREE,FOUR
|
||||
};
|
||||
|
||||
class noise {
|
||||
public:
|
||||
int freq;
|
||||
int octave;
|
||||
int amp;
|
||||
NOISETYPE type;
|
||||
DIMENSION dims;
|
||||
noise(int freq,int octave, int amp, NOISETYPE type, DIMENSION dims):
|
||||
freq(freq), octave(octave), amp(amp), type(type),dims(dims) {}
|
||||
/// to explain the image generator
|
||||
/// \param x int
|
||||
/// \param y int
|
||||
/// ^ these here is the position the noise will start rendering
|
||||
/// \param w
|
||||
/// \param h
|
||||
/// these are the image width and height. PLEASE DO NOT GET CONFUSED
|
||||
Image* gen(short w, short h,int x, int y);
|
||||
};
|
||||
|
||||
Image* cloud(noise* noise,short w, short h,int x, int y);
|
||||
Image* random(noise* noise, short w, short h,int x, int y);
|
||||
Loading…
Add table
Add a link
Reference in a new issue