PDA

View Full Version : Paint with OpenGl-Help!!



libra
07-28-2002, 06:58 PM
i have a project to do that needs to create a paint application using OpenGL and i have no idea how to do it. it needs to generate circles, square, elipse,triangle, dashed line, dotted line, line thickening and color filtering. can someone please help me with the coding...it needs to be like a paint application but this does not need to be as complex as that. thanx a lot.

Kilam Malik
07-29-2002, 01:05 AM
You could drive OpenGL with 2d functions. Then you could draw lines in the frame buffer of OpenGL. Circle could be more complicated as you have to approximate it with many lines. You could use brushes by using textures etc.


Kilam.

BlackJack
07-29-2002, 01:27 AM
Adobe Photoshop uses a 3D accelrator as well. I guess it manages it the way that it parts the picture into single quads and always updates them, if they changed.

BlackJack