|
Methods
|
|
FitSpritesOnTextures
MakeTextures
draw
draw_gl
load_2d_projection
set_up_2d_projection
setup_draw_texture
un_setup_draw_texture
|
|
|
FitSpritesOnTextures
|
FitSpritesOnTextures ( self )
|
|
|
MakeTextures
|
MakeTextures ( self )
For all of the sprites in this group we will make textures for
them.
|
|
|
draw
|
draw ( self, surface )
supposed to draw to the given surface.
Problem is it is an opengl screen.
so we get the size of it, and draw to the screen.
|
|
|
draw_gl
|
draw_gl ( self, spr )
Assumes glMatrixMode( GL_MODELVIEW )
|
|
|
load_2d_projection
|
load_2d_projection ( self )
|
|
|
set_up_2d_projection
|
set_up_2d_projection ( self, a_rect )
a_rect - the area to set up the projection for.
|
|
|
setup_draw_texture
|
setup_draw_texture ( self, screen_rect )
Sets up opengl for drawing the textures.
|
|
|
un_setup_draw_texture
|
un_setup_draw_texture ( self )
resets the opengl state to what it was before drawing.
|