remove support for old panda

This commit is contained in:
David Rose 2004-12-29 15:18:30 +00:00
parent 638fad7bf6
commit 6c4a3de098

View File

@ -555,17 +555,9 @@ class ShowBase(DirectObject.DirectObject):
if flag:
if not self.frameRateMeter:
self.frameRateMeter = FrameRateMeter('frameRateMeter')
# Temporary try..except for old pandas.
try:
self.frameRateMeter.setupLayer(self.win)
except:
self.frameRateMeter.setupWindow(self.win)
else:
if self.frameRateMeter:
# Temporary try..except for old pandas.
try:
self.frameRateMeter.clearLayer()
except:
self.frameRateMeter.clearWindow()
self.frameRateMeter = None
@ -708,12 +700,6 @@ class ShowBase(DirectObject.DirectObject):
Makes a new 3-d camera associated with the indicated window,
and creates a display region in the indicated subrectangle.
"""
# Temporary test for old pandas.
if hasattr(win, "getChannel"):
chan = win.getChannel(0)
layer = chan.makeLayer(sort)
dr = layer.makeDisplayRegion(*displayRegion)
else:
dr = win.makeDisplayRegion(*displayRegion)
dr.setSort(sort)
@ -758,12 +744,6 @@ class ShowBase(DirectObject.DirectObject):
Makes a new camera2d associated with the indicated window, and
assigns it to render the indicated subrectangle of render2d.
"""
# Temporary test for old pandas.
if hasattr(win, "getChannel"):
chan = win.getChannel(0)
layer = chan.makeLayer(sort)
dr = layer.makeDisplayRegion(*displayRegion)
else:
dr = win.makeDisplayRegion(*displayRegion)
dr.setSort(sort)
@ -798,12 +778,6 @@ class ShowBase(DirectObject.DirectObject):
Makes a new camera2dp associated with the indicated window, and
assigns it to render the indicated subrectangle of render2dp.
"""
# Temporary test for old pandas.
if hasattr(win, "getChannel"):
chan = win.getChannel(0)
layer = chan.makeLayer(sort)
dr = layer.makeDisplayRegion(*displayRegion)
else:
dr = win.makeDisplayRegion(*displayRegion)
dr.setSort(sort)