| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- // Filename: loaderFileType.cxx
- // Created by: drose (20Jun00)
- //
- ////////////////////////////////////////////////////////////////////
- //
- // PANDA 3D SOFTWARE
- // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved
- //
- // All use of this software is subject to the terms of the Panda 3d
- // Software license. You should have received a copy of this license
- // along with this source code; you will also find a current copy of
- // the license at http://www.panda3d.org/license.txt .
- //
- // To contact the maintainers of this program write to
- // [email protected] .
- //
- ////////////////////////////////////////////////////////////////////
- #include "loaderFileType.h"
- TypeHandle LoaderFileType::_type_handle;
- ////////////////////////////////////////////////////////////////////
- // Function: LoaderFileType::Constructor
- // Access: Protected
- // Description:
- ////////////////////////////////////////////////////////////////////
- LoaderFileType::
- LoaderFileType() {
- }
- ////////////////////////////////////////////////////////////////////
- // Function: LoaderFileType::Destructor
- // Access: Public, Virtual
- // Description:
- ////////////////////////////////////////////////////////////////////
- LoaderFileType::
- ~LoaderFileType() {
- }
- ////////////////////////////////////////////////////////////////////
- // Function: LoaderFileType::resolve_filename
- // Access: Public, Virtual
- // Description: Searches for the indicated filename on whatever paths
- // are appropriate to this file type, and updates it if
- // it is found. It is not necessary to call this before
- // calling load_file(), but it doesn't hurt; this is
- // useful for when the loader needs to know the full
- // pathname to the exact file it will be loading.
- ////////////////////////////////////////////////////////////////////
- void LoaderFileType::
- resolve_filename(Filename &) const {
- }
- ////////////////////////////////////////////////////////////////////
- // Function: LoaderFileType::load_file
- // Access: Public, Virtual
- // Description:
- ////////////////////////////////////////////////////////////////////
- PT(PandaNode) LoaderFileType::
- load_file(const Filename &path, bool report_errors) const {
- loader_cat.error()
- << get_type() << " cannot read PandaNode objects.\n";
- return NULL;
- }
|