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.
7 #ifndef CAFU_CMDL_MODEL_LOADER_HPP_INCLUDED
8 #define CAFU_CMDL_MODEL_LOADER_HPP_INCLUDED
16 /// This class loads a native Cafu (.cmdl) model file into a new Cafu model.
17 class LoaderCafuT
: public ModelLoaderT
21 /// The constructor for loading a native Cafu (.cmdl) model file into a new Cafu model.
22 /// @param FileName The name of the .cmdl file to load.
23 /// @param Flags The flags to load the model with. See ModelLoaderT::FlagsT for details.
24 LoaderCafuT(const std::string
& FileName
, int Flags
=NONE
);
29 void Load(ArrayT
<CafuModelT::JointT
>& Joints
, ArrayT
<CafuModelT::MeshT
>& Meshes
, ArrayT
<CafuModelT::AnimT
>& Anims
, MaterialManagerImplT
& MaterialMan
);
30 void Load(ArrayT
<CafuModelT::SkinT
>& Skins
, const MaterialManagerImplT
& MaterialMan
);
31 void Load(ArrayT
<CafuModelT::GuiFixtureT
>& GuiFixtures
);
32 void Load(ArrayT
<CafuModelT::ChannelT
>& Channels
);
33 bool Load(unsigned int Level
, CafuModelT
*& DlodModel
, float& DlodDist
) { return false; }
38 static int SetVersion(lua_State
* LuaState
);
40 lua_State
* m_LuaState
;
41 unsigned int m_Version
;