Beispiel #1
0
 def __init__(self):
     self.orthogonal = False
     self.x, self.y = 0, 0
     self.w, self.h = 640, 480
     self.camera = camera.orbit()
     self.camera.dist = 6.0
     #x field of view in degrees
     self.fov = 30
     #near and far clipping planes
     self.clippingplanes = (0.2, 20)
Beispiel #2
0
 def __init__(self):
     self.orthogonal = False
     self.x,self.y = 0,0
     self.w,self.h = 640,480
     self.screenDeviceScale = 1
     self.camera = camera.orbit()
     self.camera.dist = 6.0
     #x field of view in degrees
     self.fov = 30
     #near and far clipping planes
     self.clippingplanes = (0.2,20)
Beispiel #3
0
 def __init__(self,name):
     GLProgram.__init__(self,name)
     self.camera = camera.orbit()
     self.camera.dist = 6.0
     #x field of view in degrees
     self.fov = 30
     #near and far clipping planes
     self.clippingplanes = (0.2,20)
     #mouse state information
     self.dragging = False
     self.clearColor = [0.8,0.8,0.9,0]        
Beispiel #4
0
 def __init__(self,name):
     GLProgram.__init__(self,name)
     self.camera = camera.orbit()
     self.camera.dist = 6.0
     #x field of view in degrees
     self.fov = 60
     #near and far clipping planes
     self.clippingplanes = (0.2,20)
     #mouse state information
     self.dragging = False
     self.clearColor = [0.8,0.8,0.9,0]        
Beispiel #5
0
 def __init__(self,name):
     GLProgram.__init__(self,name)
     self.camera = camera.orbit()
     self.camera.dist = 10.0
     #field of view in degrees
     self.fov = 30
     #near and far clipping planes
     self.clippingplanes = (0.2,20)
     self.lastx = 0
     self.lasty = 0
     self.modifiers = 0
     self.clearColor = [0.8,0.8,0.9,0]