mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
add models package
This commit is contained in:
parent
d660b6934b
commit
7e9618a438
@ -1,4 +1,4 @@
|
|||||||
from pandac.PandaModules import Filename
|
from pandac.PandaModules import Filename, PandaSystem, getModelPath
|
||||||
|
|
||||||
# This file defines a number of standard "packages" that correspond to
|
# This file defines a number of standard "packages" that correspond to
|
||||||
# a Panda3D distribution. These packages are built by passing this
|
# a Panda3D distribution. These packages are built by passing this
|
||||||
@ -100,6 +100,25 @@ plugin-path $PANDA3D_ROOT
|
|||||||
default-model-extension .bam
|
default-model-extension .bam
|
||||||
""" + auxDisplays)
|
""" + auxDisplays)
|
||||||
|
|
||||||
|
class models(package):
|
||||||
|
# The standard models package. This is the contents of the
|
||||||
|
# "models" directory that ships with Panda; it includes a few
|
||||||
|
# default fonts, and some silly little sample models like smiley
|
||||||
|
# and teapot.
|
||||||
|
config(display_name = "Standard models")
|
||||||
|
|
||||||
|
# We assign it the same version as the panda3d package. This
|
||||||
|
# would be assigned by default if we had a requirement on panda3d,
|
||||||
|
# but there's no real reason to declare that requirement.
|
||||||
|
config(version = PandaSystem.getPackageVersionString())
|
||||||
|
|
||||||
|
# Look for cmss12.egg on the model-path. Wherever this is found,
|
||||||
|
# we assume this is the models directory.
|
||||||
|
pathname = getModelPath().findFile('cmss12.egg')
|
||||||
|
if pathname:
|
||||||
|
dir(pathname.getDirname(), newDir = '')
|
||||||
|
|
||||||
|
|
||||||
class fmod(package):
|
class fmod(package):
|
||||||
# This package includes the FMod audio library. This is
|
# This package includes the FMod audio library. This is
|
||||||
# full-featured and robust, but it is closed-source and the
|
# full-featured and robust, but it is closed-source and the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user