wont use lua lol
This commit is contained in:
parent
2577b18b43
commit
1c27658641
15 changed files with 101 additions and 26 deletions
|
|
@ -1,5 +1,10 @@
|
|||
#pragma once
|
||||
#include "window.h"
|
||||
|
||||
struct buffer {
|
||||
char**pixel;//rgba format
|
||||
};
|
||||
|
||||
|
||||
enum NOISETYPE {
|
||||
CLOUD,
|
||||
RANDOM,
|
||||
|
|
@ -16,8 +21,11 @@ class noise {
|
|||
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) {}
|
||||
freq(freq), octave(octave), amp(amp), type(type),dims(dims) {
|
||||
|
||||
}
|
||||
/// to explain the image generator
|
||||
/// \param x int
|
||||
/// \param y int
|
||||
|
|
@ -25,8 +33,8 @@ class noise {
|
|||
/// \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);
|
||||
buffer* 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);
|
||||
buffer* cloud(noise* noise,short w, short h,int x, int y);
|
||||
buffer* random(noise* noise, short w, short h,int x, int y);
|
||||
Loading…
Add table
Add a link
Reference in a new issue