25 lines
945 B
Python
25 lines
945 B
Python
"""ThreeUpShow is a variant of ShowBase that defines three cameras covering
|
|
different parts of the window."""
|
|
|
|
__all__ = ['ThreeUpShow']
|
|
|
|
from .ShowBase import ShowBase
|
|
|
|
|
|
class ThreeUpShow(ShowBase):
|
|
def __init__(self):
|
|
ShowBase.__init__(self)
|
|
|
|
def makeCamera(self, win, sort = 0, scene = None,
|
|
displayRegion = (0, 1, 0, 1), stereo = None,
|
|
aspectRatio = None, clearDepth = 0, clearColor = None,
|
|
lens = None, camName = 'cam', mask = None,
|
|
useCamera = None):
|
|
self.camRS = ShowBase.makeCamera(
|
|
self, win, displayRegion = (.5, 1, 0, 1), aspectRatio=.67, camName='camRS')
|
|
self.camLL = ShowBase.makeCamera(
|
|
self, win, displayRegion = (0, .5, 0, .5), camName='camLL')
|
|
self.camUR = ShowBase.makeCamera(
|
|
self, win, displayRegion = (0, .5, .5, 1), camName='camUR')
|
|
return self.camUR
|