[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Some OpenGL 2d code for the Cookbook



http://www.pygame.org/wiki/SimpleOpenGL2dClasses

I rewrote some rendering code for my GCS after I
realized that I wasn't up for continuing the paradigm
I had set up - it tried to ignore how OpenGL actually
worked for philosophical reasons; I was interested in
indexed palettes as a means of creating graphics and
wanted to make something that would do that with
truecolor. This new code is made to exploit OpenGL the
right way from the start, and I'm very pleased with
how it turned out. I also got what I wanted out of my
experiments with indexing - a very nice toolset which
I'm going to adapt to the new code and split out into
smaller components.

Anyway, I'm hoping someone will find this code useful.
It's relatively small, it incorporates all the
optimizations I could figure out, and it has a decent
number of features. It doesn't have bitmapped fonts,
but I have font code (fixed-proportion) elsewhere.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com