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

Re: [pygame] Using PyOpenGL for 2D graphics



Charles Joseph Christie II(e)k dio:
So, I'm trying to find a single good newbie tutorial for using PyOpenGL for 2D graphics. I haven't found a single one yet, although I have found a few that focus on C++. Some people recommended that I take a look at the NEHE tutorials that were re-coded in python on the python page, but those only go from 1 to 10. Does anyone know where I could find a good starting point (it doesn't have to be a super-noobish tutorial, just something to give me examples on how to start) for using PyOpenGL in conjunction with Pygame for making something?


hi charles

you might get some ideas from this basic example. Not very impressive graphics ;) but it touches some basic concepts of how to deal with 2D in OpenGL. You could avoid using pygame by using GLUT instead but I think using pygame is much nicer and flexible.

2D using pyopengl with pygame
https://devel.goto10.org/filedetails.php?repname=ixi&path=%2Fpython%2Fpygame_opengl.py&rev=0&sc=0

and in case you are interested on using GLUT
https://devel.goto10.org/filedetails.php?repname=ixi&path=%2Fpython%2Fglut_opengl.py&rev=0&sc=0

good luck

enrike