Table of Contents

Class: GroupGL rdpyg/sprites/spritegl.py
Base Classes   
pygame.sprite.Group
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.


Table of Contents

This document was automatically generated on Sat Jul 30 12:45:41 2005 by HappyDoc version 2.1