X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=plugins%2Fiqmmodel%2Fplugin.cpp;h=b6d896e342da1c9dce37945becd1178fcceffed3;hp=48ba470cb5417ef233e862648d29fd772a7006ed;hb=408628d516d676ef436af6f2603182f15eba0be4;hpb=c8b1e5cc492421114e1b0e6c1b0fc26afe0f2795 diff --git a/plugins/iqmmodel/plugin.cpp b/plugins/iqmmodel/plugin.cpp index 48ba470c..b6d896e3 100644 --- a/plugins/iqmmodel/plugin.cpp +++ b/plugins/iqmmodel/plugin.cpp @@ -1,23 +1,23 @@ /* -Copyright (C) 2001-2006, William Joseph. -All Rights Reserved. + Copyright (C) 2001-2006, William Joseph. + All Rights Reserved. -This file is part of GtkRadiant. + This file is part of GtkRadiant. -GtkRadiant is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + GtkRadiant is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -GtkRadiant is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + GtkRadiant is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GtkRadiant; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ + You should have received a copy of the GNU General Public License + along with GtkRadiant; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ #include "plugin.h" @@ -38,50 +38,45 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "iqm.h" -class IQMModelLoader : public ModelLoader -{ +class IQMModelLoader : public ModelLoader { public: - scene::Node& loadModel(ArchiveFile& file) - { - return loadIQMModel(file); - } +scene::Node &loadModel( ArchiveFile &file ){ + return loadIQMModel( file ); +} }; class ModelDependencies : - public GlobalFileSystemModuleRef, - public GlobalOpenGLModuleRef, - public GlobalUndoModuleRef, - public GlobalSceneGraphModuleRef, - public GlobalShaderCacheModuleRef, - public GlobalSelectionModuleRef, - public GlobalFiletypesModuleRef -{ + public GlobalFileSystemModuleRef, + public GlobalOpenGLModuleRef, + public GlobalUndoModuleRef, + public GlobalSceneGraphModuleRef, + public GlobalShaderCacheModuleRef, + public GlobalSelectionModuleRef, + public GlobalFiletypesModuleRef { }; -class ModelIQMAPI : public TypeSystemRef -{ - IQMModelLoader m_modeliqm; +class ModelIQMAPI : public TypeSystemRef { +IQMModelLoader m_modeliqm; public: - typedef ModelLoader Type; - STRING_CONSTANT(Name, "iqm"); - - ModelIQMAPI() - { - GlobalFiletypesModule::getTable().addType(Type::Name(), Name(), filetype_t("iqm models", "*.iqm")); - } - ModelLoader* getTable() - { - return &m_modeliqm; - } +typedef ModelLoader Type; + +STRING_CONSTANT( Name, "iqm" ); + +ModelIQMAPI(){ + GlobalFiletypesModule::getTable().addType( Type::Name(), Name(), filetype_t( "InterQuake Models", "*.iqm" ) ); +} + +ModelLoader *getTable(){ + return &m_modeliqm; +} }; typedef SingletonModule ModelIQMModule; ModelIQMModule g_ModelIQMModule; -extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules(ModuleServer& server) -{ - initialiseModule(server); +extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules( ModuleServer &server ){ + initialiseModule( server ); - g_ModelIQMModule.selfRegister(); + g_ModelIQMModule.selfRegister(); }