Re: [PyOpenGL-Users] Load image only with PyOpenGL?
Brought to you by:
mcfletch
From: Ian M. <ia...@ge...> - 2014-04-07 17:47:21
|
On Fri, Apr 4, 2014 at 11:01 PM, Robinson Risquez <rg...@ho...> 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. |