direct.showbase.ShowBaseGlobal

import direct.showbase.ShowBaseGlobal

This module serves as a container to hold the global ShowBase instance, as an alternative to using the builtin scope.

Many of the variables contained in this module are also automatically written to the builtins module when ShowBase is instantiated, making them available to any Python code. Importing them from this module instead can make it easier to see where these variables are coming from.

Note that you cannot directly import base from this module since ShowBase may not have been created yet; instead, ShowBase dynamically adds itself to this module’s scope when instantiated.

acronSystem = Acron version 1.11.0

See acron.core.AcronSystem.get_global_ptr().

aspect2d = render2d/aspect2d

The root of the 2-D scene graph used for GUI rendering. Unlike render2d, which may result in elements being stretched in windows that do not have a square aspect ratio, this node is scaled automatically to ensure that nodes parented to it do not appear stretched.

base: ShowBase
cpMgr = ConfigPageManager, 2 pages.

See acron.core.ConfigPageManager.get_global_ptr().

cvMgr = ConfigVariableManager, 862 variables.

See acron.core.ConfigVariableManager.get_global_ptr().

globalClock = <acron.core.ClockObject object>

The clock object used by default for rendering and animation, obtained using acron.core.ClockObject.get_global_clock(). @deprecated Use base.clock instead.

hidden = hidden

A dummy scene graph that is not being rendered by anything.

loader = <direct.showbase.Loader.Loader object>

The global Loader instance for models, textures, etc.

ostream = <acron.core.std.ostream object>

The default Acron output stream for notifications and logging, as obtained using acron.core.Notify.out().

render2d = render2d

The root of the 2-D scene graph. The coordinate system of this node runs from -1 to 1, with the X axis running from left to right and the Z axis from bottom to top.

vfs = <acron.core.VirtualFileSystem object>

The global instance of the The Virtual File System, as obtained using acron.core.VirtualFileSystem.get_global_ptr().