Should be easy to go from there to something that works as you want.
Greg Ercolano
unread,
Apr 25, 2021, 12:09:37 PM4/25/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to fltkg...@googlegroups.com
Yes, good call to use texture mapped rectangles.
Also, I think openGL still has a "bit blit" function that lets
one slap a rectangle
of pixels directly from Fl_JPEG_Image's RGB
buffer to the openGL screen using glDrawPixels(). Be sure to get the pixel format
right when using that, to ensure
RGB byte ordering of glDrawPixels() is set to match the jpeg
image buffer's
data format.
The nice thing about texturemapping the image is you get image
zoom for
free; just move the rectangle around as needed. It even will
integrate into
your openGL scene properly in 3D. Just keep the texture
rectangle pointed
at the camera.