mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Add self.a2dBackground
This commit is contained in:
parent
0109caeeed
commit
872f08f70c
@ -824,6 +824,8 @@ class ShowBase(DirectObject.DirectObject):
|
|||||||
self.aspect2d = self.render2d.attachNewNode(PGTop("aspect2d"))
|
self.aspect2d = self.render2d.attachNewNode(PGTop("aspect2d"))
|
||||||
self.aspect2d.setScale(1.0 / aspectRatio, 1.0, 1.0)
|
self.aspect2d.setScale(1.0 / aspectRatio, 1.0, 1.0)
|
||||||
|
|
||||||
|
self.a2dBackground = self.aspect2d.attachNewNode("a2dBackground")
|
||||||
|
|
||||||
# It's important to know the bounds of the aspect2d screen.
|
# It's important to know the bounds of the aspect2d screen.
|
||||||
self.a2dTop = 1.0
|
self.a2dTop = 1.0
|
||||||
self.a2dBottom = -1.0
|
self.a2dBottom = -1.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user