def update_buffer(self, ship): t = (v3d(*ship.ship_dir), v3d(*ship.up_dir)) obj = self.buffer.pop_front() self.buffer.push_back(t) return obj
def init_buffer(self): sz = Config('game', 'OpenGL').get('camera_buffer_size') t = (v3d(*self.ship.ship_dir), v3d(*self.ship.up_dir)) for i in xrange(sz): self.buffer.push_back(t)
def update_buffer(self, ship): t = ( v3d(*ship.ship_dir), v3d(*ship.up_dir) ) obj = self.buffer.pop_front() self.buffer.push_back(t) return obj
def init_buffer(self): sz = Config('game', 'OpenGL').get('camera_buffer_size') t = ( v3d(*self.ship.ship_dir), v3d(*self.ship.up_dir) ) for i in xrange(sz): self.buffer.push_back(t)