wont use lua lol

This commit is contained in:
kin fuyuki 2026-02-22 22:15:45 -03:00
commit 1c27658641
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
15 changed files with 101 additions and 26 deletions

40
engine/noisedev/noise.h Normal file
View file

@ -0,0 +1,40 @@
#pragma once
struct buffer {
char**pixel;//rgba format
};
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
buffer* gen(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);