On Fri, Apr 4, 2014 at 10:01 PM, Robinson Risquez <rg868@hotmail.com> wrote:
Hi, there is a way to load and render a simple image only with PyOpenGL without using PIL, Pygame, FreeImage or others librarys outside PyOpenGL? no matter if I use a strange image format or something.

you could use raw RGB  or RGBA bytes as your format, and then just load them up into a bytes object and create a texture from  that.

and the stdlib included a couple compression modules:

https://docs.python.org/2/library/archiving.html

so you could write a little custom compressed format with those.

-Chris

 
I want to avoid external libraries. Thanks!.

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Users mailing list
PyOpenGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyopengl-users




--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov