Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ColladaPlugin/include/OgreColladaAsset.h @ 21

Last change on this file since 21 was 21, checked in by nicolasc, 16 years ago

added ogreode and Colladaplugin

File size: 1.8 KB
Line 
1/**
2 * This source file is part of OgreColladaPlugin
3 * an addon for OGRE (Object-oriented Graphics Rendering Engine)
4 * For the latest info, see http://www.ogre3d.org/
5 *
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Lesser General Public License as published by the Free Software
8 * Foundation; either version 2 of the License, or (at your option) any later
9 * version.
10
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
14
15 * You should have received a copy of the GNU Lesser General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
17 * Place - Suite 330, Boston, MA 02111-1307, USA, or go to
18 * http://www.gnu.org/copyleft/lesser.txt.
19 *
20 * @author      Philipp Hartl, Jeff Doyle (nfz)
21 * @see         README
22 */
23
24#ifndef __COLLADA_ASSET_H__
25#define __COLLADA_ASSET_H__
26
27#include "OgreColladaPrerequisites.h"
28
29namespace Ogre
30{
31    /**  Collada assets define asset management information regarding its parent element.
32    */
33    class ColladaAsset
34    {
35    public:
36        ColladaAsset(xmlNode *node) : mNode(node), mUpAxis(Y_UP) {}
37        ~ColladaAsset();
38
39                /**
40                 * import <asset> node
41                 *
42         */
43                bool doImport();
44        /** Get the up axis descriptive information for the coordinate system of the geometric data.
45         * @return the axis the points up: X_UP, Y_UP, Z_UP
46         */
47        UpAxis getUpAxis() const { return mUpAxis; }
48
49    protected:
50                xmlNode                 *mNode;         // the node structure to import
51        UpAxis          mUpAxis;
52
53    };
54
55}
56
57#endif // __COLLADA_ASSET_H__
Note: See TracBrowser for help on using the repository browser.