Can anyone point me to how I might modify the GLPaint program to put a tool like a pencil image on the screen and as I drag the image it actually draws the line?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GLPaint is a particular bad starting point for this, because anything you draw to the screen becomes part of the painting. That would include the pencil. Changes required: Drawing operations performed on a off-screen FBO. Composition of off-screen FBO and drawing-tool pointer on the on-screen framebuffer.
On a side note: I’m getting annoyed by all those “How can I make GLPaint do this and that?” questions. GLPaint is an extremely bad example to start of OpenGL development. If you know OpenGL all those tasks could be done. But if you’re an OpenGL newbie GLPaint is just the wrong starting point, because it doesn’t explain why and how it works.
Please, if you want to learn OpenGL/-ES, don’t start of OpenGL paint. Start with something simple, like drawing coloured triangles, so that you get an understanding how OpenGL works / not. Then take small steps.