Forgot to save a file
[SpaceyShooter.git] / renderings.py
blob0a915626580896cfa3fbe938d8d4a74a3122aac7
1 import pygame
3 VERSION = "0.01a"
5 class RenderWindow:
6 renderSurface = None
7 queueStack = []
9 def __init__(self, size):
10 self.renderSurface = pygame.display.set_mode(size, pygame.OPENGL)
11 pygame.display.set_caption("Spacey Shooter v%s"%(VERSION))
12 pygame.init()
14 def processFrame(self):
15 #This probably isn't the best way to do things, I'll look into it later.
16 for item in queueStack:
17 pygame.Surface.blit(item.render(), self.renderSurface)
18 pygame.display.flip()