PDA

View Full Version : hopefully this will be the last question for awhile...



Quan
12-27-2000, 02:15 PM
I want to create rectangle for my image surface and then wrap a texture on it which is the actual image. this way i can add a new semi transparent layer on top of that. currently i am just creating a pixmap and using 'glDrawPixels((GLsizei) width, (GLsizei) height, GL_RGBA, GL_UNSIGNED_BYTE, pPixMap)' to render the image. Can I just create an image on the fly and have that be the texture to wrap around my rectangle? if so, how can I go about doing this?
If this is not a good idea, then can anyone suggest an alternative?

Thank you,
-Quan