[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pygame] Pygame and OpenGL




>sounds like you already got it started, but don't overlook the "glcube"
>sample the comes in the pygame examples directory :]

Ok, I don't know much about opengl, so I thought I give
this demo a try - it works fine.
But I was suprised at the draw loop, that DrawCube had to
be called every time. I thougt one advantage of OpenGL would be
that I'd be able to describe each object class only once
(using glVertex, or whatever) and then tell OpenGL to place
it with a particular scale/rotation, etc.
Doesn't OpenGL have a retained mode?
Why does the demo move the camera rather than the object?

Basically, I'd like to experiment by taking the beginnings of my 2d vector
game
to opengl, just for speedup (seeing it'll do the rotations, etc.)
later add some camera work, and maybe really take advantage of the z-asis,
etc.,
later on. If I have to call glVectex, et al, in the draw loop for each part
of my
shapes, it'll be slower than my current solution.

thanks,
mike


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org