PDA

View Full Version : 2d pixel drawing...



01-02-2002, 04:31 AM
i want to draw pixels on the screen in 2d with 32 bit color (255 values in each R,G,B). what would be the fastest way to do this? i was reading some documentation and i understand that you draw vertices to do this? is that that only way?
i want to make the program entirely in 2d, so no 3d type stuff is needed at all.

thanks

Korval
01-02-2002, 12:38 PM
Well, most consumer-level hardware expects 3D, so the best way to deal with 2D is to pretend it's 3D, but in one plane. So, you will be drawing texturemapped primitives, but they will all be square (unless you want to rotate them) and they will all be in a plane.

zed
01-02-2002, 04:31 PM
http://www.3dgamedev.com/resources/openglfaq.txt
section 4