Beispiel #1
0
	def __init__(self):
		BasicApplication.__init__(self)
		# initialize timer
		self.timer = Timer(self.OnTimer)
		# initialize state
		self.scene = Scene()
		self.scene.modified = False
		self.camera = Camera(Vector3f(4), Euler(DegToRad(45), DegToRad(-45)))
		self.selectedCamera = None
		# initialize window
		self.window = Window(self)
		self.window.canvas.OnRender = self.OnRender
Beispiel #2
0
	def __init__(self):
		BasicApplication.__init__(self)
		# initialize timer
		self.timer = Timer(self.OnTimer)
		# initialize state
		self.scene = Scene()
		self.scene.modified = False
		self.camera = ZoomCamera()
		self.selected = []
		self.mode = self.SELECT_MODE
		# initialize window
		self.window = Window(self)
		self.window.canvas.OnRender = self.OnRender