Panda3D
Functions
loader.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "loader.h"
#include "loaderFileType.h"
#include "loaderFileTypeRegistry.h"
#include "config_pgraph.h"
#include "modelPool.h"
#include "modelLoadRequest.h"
#include "modelSaveRequest.h"
#include "config_express.h"
#include "config_putil.h"
#include "virtualFileSystem.h"
#include "filename.h"
#include "load_dso.h"
#include "string_utils.h"
#include "bamCache.h"
#include "bamCacheRecord.h"
#include "sceneGraphReducer.h"
#include "renderState.h"
#include "bamFile.h"
#include "configVariableInt.h"
#include "configVariableEnum.h"

Go to the source code of this file.

Functions

 PT (AsyncTask) Loader
 Returns a new AsyncTask object suitable for adding to load_async() to start an asynchronous model load. More...
 
 PT (PandaNode) Loader
 Attempts to read a bam file from the indicated stream and return the scene graph defined there. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
mike
Date
1997-01-09

Definition in file loader.cxx.

Function Documentation

◆ PT() [1/2]

PT ( AsyncTask  )

Returns a new AsyncTask object suitable for adding to load_async() to start an asynchronous model load.

Returns a new AsyncTask object suitable for adding to save_async() to start an asynchronous model save.

Definition at line 79 of file loader.cxx.

References Filename::get_basename().

◆ PT() [2/2]

PT ( PandaNode  )

Attempts to read a bam file from the indicated stream and return the scene graph defined there.

Loads a single scene graph file, if possible.

Returns the Node that is the root of the file, or NULL if the file cannot be loaded.

If search is true, the file is searched for along the model path; otherwise, only the exact filename is loaded. The implementatin of load_file(), this tries a single possible file without searching further along the path. Saves a scene graph to a single file, if possible. The file type written is implicit in the filename extension. The implementation of save_file(), this tries to write a specific file type. Loads up all of the dynamic libraries named in a load-file-type Configure variable. Presumably this will make the various file types available for runtime loading.

Definition at line 100 of file loader.cxx.

References BamFile::open_read().