Download.it search icon
Advertisement

Lightweight demo renders interactive 3D Mandelbrot fractals with multiple visualization modes using OpenGL

Lightweight demo renders interactive 3D Mandelbrot fractals with multiple visualization modes using OpenGL

Vote: (9 votes)

Developer: MASMO

Created: 2003-05-20

MD5: 737e4162c4743e23f1ed31cf052c5df2

Size: 296.5 KB

Vote

(9 votes)

Developer

MASMO

Created

2003-05-20

MD5

737e4162c4743e23f1ed31cf052c5df2

Size

296.5 KB

The program is simple, perhaps also too much, and it allows of to visualize the whole mandelbrot in 3d. The demo occupies 297Kbytes.

After a short pause I have returned in action with this small Demo. The program is simple, perhaps also too much, and it allows of to visualize the whole mandelbrot in 3d. The demo occupies 297Kbytes.

Routine Description

AUX_RGBImageRec *LoadBMP(char *Filename) Loads a bitmap image (called by LoadGLTextures)

int LoadGLTextures() Load Bitmaps And Convert To Textures (Not used)

void Mandel(double infx,double supx,double infy,double supy) Calculate Mandelbrot to the suitable coordinates

void VisuaUno(void) Draws mandel using points in 2d

void VisuaDue(void) Draws mandel using points in 3d

void VisuaTre(void) Draws mandel using lines

void VisuaQuattro(void) Draws mandel using quads

void Quadrato(void) Draws the selection square

void Pannello(void) Draws the panel (f2)

void Click_Pannello(float x,float y,int dec) Manages the click on the panel

void Calcola(void) Calculates the new mandel coordinates

GLvoid ReSizeGLScene(GLsizei width, GLsizei height)

int InitGL(GLvoid)

int DrawGLScene(GLvoid)

GLvoid KillGLWindow(GLvoid)

BOOL CreateGLWindow(char* title, int width, int height, int bits, bool fullscreenflag)

LRESULT CALLBACK WndProc(..)

int WINAPI WinMain(..)

These routines have been taken by the examples of NeHe