]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/iselectedface.h
uncrustify! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / include / iselectedface.h
index 61bc70d40c7083123d4889480062335e3981ebed..66616ed4b2f1eb244eb883a42e30d538df84e831 100644 (file)
@@ -1,23 +1,23 @@
 /*
-Copyright (C) 1999-2007 id Software, Inc. and contributors.
-For a list of contributors, see the accompanying CONTRIBUTORS file.
+   Copyright (C) 1999-2007 id Software, Inc. and contributors.
+   For a list of contributors, see the accompanying CONTRIBUTORS file.
 
-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
+ */
 
 //-----------------------------------------------------------------------------
 //
@@ -38,41 +38,41 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 //++timo TODO: this interface needs some cleanup with the new texture / shaders interface
 
 // number of selected textures
-typedef int   (WINAPI* PFN_GETSELECTEDFACECOUNT) ();
+typedef int ( WINAPI * PFN_GETSELECTEDFACECOUNT )();
 // retrieve the corresponding brush_t* (we need it when we need to explicitely rebuild stuff)
-typedef brush_t*    (WINAPI* PFN_GETFACEBRUSH) (int iface);
+typedef brush_t*    ( WINAPI * PFN_GETFACEBRUSH )( int iface );
 // retrieve a given face_t*
-typedef face_t*     (WINAPI* PFN_GETFACE) (int iface);
+typedef face_t*     ( WINAPI * PFN_GETFACE )( int iface );
 // winding_t is assumed to have MAX_POINTS_ON_WINDING allocated and waiting
-typedef int            (WINAPI* PFN_GETFACEINFO)               (int iface, _QERFaceData*, winding_t* );
+typedef int ( WINAPI * PFN_GETFACEINFO )( int iface, _QERFaceData*, winding_t* );
 // tell editor to update the selected face data
-typedef int            (WINAPI* PFN_SETFACEINFO)               (int iface, _QERFaceData*);
+typedef int ( WINAPI * PFN_SETFACEINFO )( int iface, _QERFaceData* );
 // retrieve the texture number to bind to
-typedef int            (WINAPI* PFN_GETTEXTURENUMBER)  (int iface);
+typedef int ( WINAPI * PFN_GETTEXTURENUMBER )( int iface );
 // retrieving some texture information
-typedef void   (WINAPI* PFN_GETTEXTURESIZE)    (int iface, int Size[2] );
+typedef void ( WINAPI * PFN_GETTEXTURESIZE )( int iface, int Size[2] );
 // straight func pointer to Select_SetTexture
 // last parameter must be casted to an IPluginTexdef
-typedef void   (WINAPI* PFN_SELECT_SETTEXTURE)         (texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale, void* pPlugTexdef);
+typedef void ( WINAPI * PFN_SELECT_SETTEXTURE )( texdef_t *texdef, brushprimit_texdef_t *brushprimit_texdef, bool bFitScale, void* pPlugTexdef );
 
 // NOTE: some things in there are not really related to the selected face
 // having some stuff moved into a textures-dedicated part ?
 struct _QERSelectedFaceTable
 {
        int m_nSize;
-  PFN_GETSELECTEDFACECOUNT  m_pfnGetSelectedFaceCount;
-  PFN_GETFACEBRUSH          m_pfnGetFaceBrush;
-  PFN_GETFACE               m_pfnGetFace;
-  PFN_GETFACEINFO                            m_pfnGetFaceInfo;
-  PFN_SETFACEINFO                            m_pfnSetFaceInfo;
-  PFN_GETTEXTURENUMBER     m_pfnGetTextureNumber;
-  PFN_GETTEXTURESIZE               m_pfnGetTextureSize;
-  PFN_SELECT_SETTEXTURE            m_pfnSelect_SetTexture;     
+       PFN_GETSELECTEDFACECOUNT m_pfnGetSelectedFaceCount;
+       PFN_GETFACEBRUSH m_pfnGetFaceBrush;
+       PFN_GETFACE m_pfnGetFace;
+       PFN_GETFACEINFO m_pfnGetFaceInfo;
+       PFN_SETFACEINFO m_pfnSetFaceInfo;
+       PFN_GETTEXTURENUMBER m_pfnGetTextureNumber;
+       PFN_GETTEXTURESIZE m_pfnGetTextureSize;
+       PFN_SELECT_SETTEXTURE m_pfnSelect_SetTexture;
 };
 
 #ifdef USE_SELECTEDFACETABLE_DEFINE
   #ifndef __SELECTEDFACETABLENAME
-    #define __SELECTEDFACETABLENAME g_SelectedFaceTable
+       #define __SELECTEDFACETABLENAME g_SelectedFaceTable
   #endif
 
   #define GetSelectedFaceCount __SELECTEDFACETABLENAME.m_pfnGetSelectedFaceCount