Panda3D
 All Classes Functions Variables Enumerations
load_collada_file.h
1 // Filename: load_collada_file.h
2 // Created by: rdb (16Mar11)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef LOAD_COLLADA_FILE_H
16 #define LOAD_COLLADA_FILE_H
17 
18 #include "pandabase.h"
19 
20 #include "pandaNode.h"
21 #include "filename.h"
22 #include "coordinateSystem.h"
23 
24 class BamCacheRecord;
25 
26 BEGIN_PUBLISH
27 ////////////////////////////////////////////////////////////////////
28 // Function: load_collada_file
29 // Description: A convenience function; the primary interface to this
30 // package. Loads up the indicated DAE file, and
31 // returns the root of a scene graph. Returns NULL if
32 // the file cannot be read for some reason.
33 ////////////////////////////////////////////////////////////////////
34 EXPCL_COLLADA PT(PandaNode)
35 load_collada_file(const Filename &filename, CoordinateSystem cs = CS_default,
36  BamCacheRecord *record = NULL);
37 END_PUBLISH
38 
39 #endif
A basic node of the scene graph or data graph.
Definition: pandaNode.h:72
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
An instance of this class is written to the front of a Bam or Txo file to make the file a cached inst...