FLTK logo

Re: [fltk.general] Loading jpeg images in OpenGL

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Loading jpeg images in OpenGL Albrecht Schlosser Apr 25, 2021  
 
On 4/25/21 12:50 PM holm.h...@gmail.com wrote:

I am to load and draw a jpeg image in OpenGL.

Does any have routines for loading the jpeg ? Do fltk have code for that ?

FLTK has classes that load "all sorts" of images

https://www.fltk.org/doc-1.4/classFl__Image.html

For jpeg see:
https://www.fltk.org/doc-1.4/classFl__JPEG__Image.html

If you wonder how to access the image data to use it for drawing in OpenGL the following two HowTo's may be helpful:

https://www.fltk.org/articles.php?L466
https://www.fltk.org/articles.php?L468

The latter describes the opposite but maybe it can give you some clues as well.

For drawing images in OpenGL I can't help.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/6efb306f-07d2-9e2c-a4c5-2bcbd4f9e413%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.