-
Drawing pixel per pixel
I have to write a C fractal drawing program ; it must run on Macintosh and Windows, so compatibily problems for the graphic interface (and i won't write 2 codes !!).
I've just discovered OpenGL, its portabiliy and its huge power ; only the portability aspect interest me (i just need to draw simple fractals as Mandelbrot group). I have to draw pixels in function of an algorithm result.
How is it possible to draw precisely pixels in an OpenGL window (i mean : an OpenGL window 640x480 -> i'd like to write something like pixel(12,50)="a color" where (12,50) is the real coordinate of the pixel in the window) (like the BGI API of Borland C, but really more powerfull) ; I know that it's not using OpenGL as it's proper use, but i only found this API for a portable program. If another API does it, it's OK too.
Thank you
Thibault
thibault.groisil@free.fr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules