Cafu Engine
Loader_lwo.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_LIGHTWAVE_OBJECT_LOADER_HPP_INCLUDED
8 #define CAFU_LIGHTWAVE_OBJECT_LOADER_HPP_INCLUDED
9 
10 #include "Loader.hpp"
11 
12 
13 /// This class imports a LightWave Object (.lwo) file into a new Cafu model.
14 class LoaderLwoT : public ModelLoaderT
15 {
16  public:
17 
18  /// The constructor for importing a LightWave Object (.lwo) file into a new Cafu model.
19  /// @param FileName The name of the .lwo file to import.
20  /// @param Flags The flags to load the model with. See ModelLoaderT::FlagsT for details.
21  LoaderLwoT(const std::string& FileName, int Flags=NONE);
22 
24  void Load(ArrayT<CafuModelT::SkinT>& Skins, const MaterialManagerImplT& MaterialMan) { }
25  void Load(ArrayT<CafuModelT::GuiFixtureT>& GuiFixtures) { }
26  void Load(ArrayT<CafuModelT::ChannelT>& Channels) { }
27  bool Load(unsigned int Level, CafuModelT*& DlodModel, float& DlodDist) { return false; }
28 };
29 
30 #endif
bool Load(unsigned int Level, CafuModelT *&DlodModel, float &DlodDist)
Loads the dlod-model and dlod-distance at the given level.
Definition: Loader_lwo.hpp:27
This class represents a native Cafu model.
Definition: Model_cmdl.hpp:45
void Load(ArrayT< CafuModelT::SkinT > &Skins, const MaterialManagerImplT &MaterialMan)
Loads the skins of the Cafu model.
Definition: Loader_lwo.hpp:24
The base class for importing arbitrary model files into Cafu models.
Definition: Loader.hpp:15
LoaderLwoT(const std::string &FileName, int Flags=NONE)
The constructor for importing a LightWave Object (.lwo) file into a new Cafu model.
Definition: Loader_lwo.cpp:194
This class implements the MaterialManagerI interface.
Definition: MaterialManagerImpl.hpp:23
void Load(ArrayT< CafuModelT::ChannelT > &Channels)
Loads the animation channels (groups of joints) of the Cafu model.
Definition: Loader_lwo.hpp:26
void Load(ArrayT< CafuModelT::GuiFixtureT > &GuiFixtures)
Loads the GUI fixtures of the Cafu model.
Definition: Loader_lwo.hpp:25
void Load(ArrayT< CafuModelT::JointT > &Joints, ArrayT< CafuModelT::MeshT > &Meshes, ArrayT< CafuModelT::AnimT > &Anims, MaterialManagerImplT &MaterialMan)
Actually loads the file data into the appropriate parts of the Cafu model.
Definition: Loader_lwo.cpp:200
This class imports a LightWave Object (.lwo) file into a new Cafu model.
Definition: Loader_lwo.hpp:14