Advertisement

Plotting pixels WEEEE!

Started by November 08, 2000 08:17 PM
1 comment, last by Bleakcabal 24 years ago
Correct me if im wrong but there is no simple way to plot just a single pixel in OGL ? I have looked into the first nehe tutorials and then his link to the blue book and I have found out that plotting a single pixel is quite a task when compared to making a triangle or quad ? Why is that so, shouldnt it be a lot easier ? glDrawPixels needs to have some things set requiring 4 functions and the function itself has a slew of parameters. Not saying its hard but I imagined it would be easier compared to shapes.
WHO DO THEYTHINK THEY'REFOOLING : YOU ?
OpenGL is really mostly designed for 3d graphics, not 2d. In fact, the largest downfall of OpenGL is probably its lack of 2d draw support. glDrawPixels is probably your best bet, but then of course you COULD write your own DrawPixel function. That would have to either use the raster graphics, slow your program down lots, and be a general pain, or take the faster but equally difficult route of using glBegin(); and drawing points. The latter is probably best- just set the program to ortho mode, draw, and put it back to the normal mode.

Of course, changing matrices can be system heavy too, so you will need some sort of system that collects all the points being drawn that cycle, and then draws them all at once.

Enjoy!

Advertisement
Ill look into that point thing thx




WHO DO THEY
THINK THEY''RE
FOOLING : YOU ?
WHO DO THEYTHINK THEY'REFOOLING : YOU ?

This topic is closed to new replies.

Advertisement