mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Summer 2010 CMU ETC PandaLE team: added two functions addDisplayRegionContext and removeDisplayRegionContext to add and remove display regions on the fly
This commit is contained in:
parent
89173e6d05
commit
2fefa6a0b8
@ -1301,6 +1301,15 @@ class DisplayRegionList(DirectObject):
|
|||||||
# hack to test movement
|
# hack to test movement
|
||||||
return Task.cont
|
return Task.cont
|
||||||
|
|
||||||
|
def addDisplayRegionContext(self, cam):
|
||||||
|
self.displayRegionList.append(DisplayRegionContext(cam))
|
||||||
|
|
||||||
|
def removeDisplayRegionContext(self, cam):
|
||||||
|
for drc in self.displayRegionList:
|
||||||
|
if drc.cam == cam:
|
||||||
|
self.displayRegionList.remove(drc)
|
||||||
|
break
|
||||||
|
|
||||||
# Create one
|
# Create one
|
||||||
__builtins__['direct'] = base.direct = DirectSession()
|
__builtins__['direct'] = base.direct = DirectSession()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user