comparison pytouhou/opengl/gamerenderer.pyx @ 187:46793ccfedca

Implement replays.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 26 Oct 2011 17:54:03 -0700
parents c0183515a0a3
children 8ec34c56fed0
comparison
equal deleted inserted replaced
186:84da28ae7ee4 187:46793ccfedca
40 cdef public background 40 cdef public background
41 41
42 cdef Vertex *vertex_buffer 42 cdef Vertex *vertex_buffer
43 43
44 44
45 def __cinit__(self, resource_loader, game=None, background=None): 45 def __cinit__(self):
46 # Allocate buffers 46 # Allocate buffers
47 self.vertex_buffer = <Vertex*> malloc(MAX_ELEMENTS * sizeof(Vertex)) 47 self.vertex_buffer = <Vertex*> malloc(MAX_ELEMENTS * sizeof(Vertex))
48 48
49 49
50 def __dealloc__(self): 50 def __dealloc__(self):