Re: Load image only with PyOpenGL?
Chris Barker <[email protected]> Mon, 7 Apr 2014 10:54:06 -0700
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <CALGmxELB3fFLGKkESK_xcF8NsOVBixCnshM+3RNtXvQWpqYrLA@mail.gmail.com> |
On Fri, Apr 4, 2014 at 10:01 PM, Robinson Risquez <[email protected]> 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 > [email protected] > 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 [email protected] ------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-users