Fix issue in Rocket.lua script.
[Cafu-Engine.git] / Libs / Models / Loader_cmdl.hpp
blobcca3a8ad3bf94154815c2c0a99215bb9b8f867e2
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 */
7 #ifndef CAFU_CMDL_MODEL_LOADER_HPP_INCLUDED
8 #define CAFU_CMDL_MODEL_LOADER_HPP_INCLUDED
10 #include "Loader.hpp"
13 struct lua_State;
16 /// This class loads a native Cafu (.cmdl) model file into a new Cafu model.
17 class LoaderCafuT : public ModelLoaderT
19 public:
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);
26 /// The destructor.
27 ~LoaderCafuT();
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; }
36 private:
38 static int SetVersion(lua_State* LuaState);
40 lua_State* m_LuaState;
41 unsigned int m_Version;
44 #endif