This commit is contained in:
Carlos Aragones
2020-04-25 23:16:35 +02:00
parent 894e7cca5e
commit 4bd40299eb
8 changed files with 102 additions and 162 deletions

View File

@ -11,16 +11,14 @@ static unsigned int g_buffer[WIDTH * HEIGHT];
int
main()
{
int noise, carry, seed = 0xbeef;
int i, noise, carry, seed = 0xbeef;
struct mfb_window *window = mfb_open_ex("Noise Test", WIDTH, HEIGHT, WF_RESIZABLE);
if (!window)
return 0;
mfb_update_state state;
do {
int i;
mfb_update_state state;
for (i = 0; i < WIDTH * HEIGHT; ++i) {
noise = seed;
noise >>= 3;