Re: Load image only with PyOpenGL?

Ian Mallett <[email protected]> Mon, 7 Apr 2014 11:46:59 -0600
Newsgroups gmane.comp.python.opengl.user
Message-ID <CAG4NV=tFcVd=uY1xyemZaRwSY_8ZjWusD2ysoQc86EXpVtL+Qw@mail.gmail.com>
On Fri, Apr 4, 2014 at 11: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. I want to avoid external
> libraries. Thanks!.
>
This is technically possible, but probably silly. You could try .gif
images, which are fairly straightforward, or maybe roll your own format,
but I see no reason to do so.

PyGame has good support for a wide variety of formats, and works nicely
with PyOpenGL textures. Using PyGame is doubly justifiable since you need a
windowing system and GLUT is a terrible choice.

------------------------------------------------------------------------------
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