]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/glinterface.cpp
more eol-style
[xonotic/netradiant.git] / radiant / glinterface.cpp
index 254c368e1abeca5a8e39bb988864aefebce27637..13e7e6c9016425861381188296793f40b4bd7433 100644 (file)
@@ -1,91 +1,91 @@
-/*\r
-Copyright (C) 1999-2007 id Software, Inc. and contributors.\r
-For a list of contributors, see the accompanying CONTRIBUTORS file.\r
-\r
-This file is part of GtkRadiant.\r
-\r
-GtkRadiant is free software; you can redistribute it and/or modify\r
-it under the terms of the GNU General Public License as published by\r
-the Free Software Foundation; either version 2 of the License, or\r
-(at your option) any later version.\r
-\r
-GtkRadiant is distributed in the hope that it will be useful,\r
-but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-GNU General Public License for more details.\r
-\r
-You should have received a copy of the GNU General Public License\r
-along with GtkRadiant; if not, write to the Free Software\r
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
-*/\r
-\r
-//-----------------------------------------------------------------------------\r
-//\r
-//\r
-// DESCRIPTION:\r
-// Quick interface hack for selected face interface\r
-// this one really needs more work, but I'm in a hurry with TexTool\r
-\r
-#include "stdafx.h"\r
-//#include "qe3.h"\r
-\r
-// stores objects that want to be hooked into drawing in the XY window or Camera view\r
-//++timo TODO: add support for Z view ... (texture view?)\r
-CPtrArray l_GL2DWindows;\r
-CPtrArray l_GL3DWindows;\r
-\r
-void WINAPI QERApp_HookGL2DWindow(IGL2DWindow* pGLW)\r
-{\r
-       l_GL2DWindows.Add( pGLW );\r
-       pGLW->IncRef();\r
-}\r
-\r
-void WINAPI QERApp_UnHookGL2DWindow(IGL2DWindow* pGLW)\r
-{\r
-       for( int i = 0; i < l_GL2DWindows.GetSize(); i++ )\r
-       {\r
-               if (l_GL2DWindows.GetAt(i) == pGLW)\r
-               {\r
-                       l_GL2DWindows.RemoveAt(i);\r
-                       pGLW->DecRef();\r
-                       return;\r
-               }\r
-       }\r
-#ifdef _DEBUG\r
-       Sys_Printf("ERROR: IGL2DWindow* not found in QERApp_UnHookGL2DWindow\n");\r
-#endif\r
-}\r
-\r
-void Draw2DPluginEntities( VIEWTYPE vt )\r
-{\r
-       for(int i = 0; i<l_GL2DWindows.GetSize(); i++ )\r
-               static_cast<IGL2DWindow*>(l_GL2DWindows.GetAt(i))->Draw2D( vt );\r
-}\r
-\r
-void WINAPI QERApp_HookGL3DWindow(IGL3DWindow* pGLW)\r
-{\r
-  l_GL3DWindows.Add( pGLW );\r
-  pGLW->IncRef();\r
-}\r
-\r
-void WINAPI QERApp_UnHookGL3DWindow(IGL3DWindow* pGLW)\r
-{\r
-       for( int i = 0; i < l_GL3DWindows.GetSize(); i++ )\r
-       {\r
-               if (l_GL3DWindows.GetAt(i) == pGLW)\r
-               {\r
-                       l_GL3DWindows.RemoveAt(i);\r
-                       pGLW->DecRef();\r
-                       return;\r
-               }\r
-       }\r
-#ifdef _DEBUG\r
-       Sys_Printf("ERROR: IGL3DWindow* not found in QERApp_UnHookGL3DWindow\n");\r
-#endif\r
-}\r
-\r
-void Draw3DPluginEntities()\r
-{\r
-       for(int i = 0; i<l_GL3DWindows.GetSize(); i++ )\r
-               static_cast<IGL3DWindow*>(l_GL3DWindows.GetAt(i))->Draw3D();\r
-}\r
+/*
+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.
+
+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.
+
+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
+*/
+
+//-----------------------------------------------------------------------------
+//
+//
+// DESCRIPTION:
+// Quick interface hack for selected face interface
+// this one really needs more work, but I'm in a hurry with TexTool
+
+#include "stdafx.h"
+//#include "qe3.h"
+
+// stores objects that want to be hooked into drawing in the XY window or Camera view
+//++timo TODO: add support for Z view ... (texture view?)
+CPtrArray l_GL2DWindows;
+CPtrArray l_GL3DWindows;
+
+void WINAPI QERApp_HookGL2DWindow(IGL2DWindow* pGLW)
+{
+       l_GL2DWindows.Add( pGLW );
+       pGLW->IncRef();
+}
+
+void WINAPI QERApp_UnHookGL2DWindow(IGL2DWindow* pGLW)
+{
+       for( int i = 0; i < l_GL2DWindows.GetSize(); i++ )
+       {
+               if (l_GL2DWindows.GetAt(i) == pGLW)
+               {
+                       l_GL2DWindows.RemoveAt(i);
+                       pGLW->DecRef();
+                       return;
+               }
+       }
+#ifdef _DEBUG
+       Sys_Printf("ERROR: IGL2DWindow* not found in QERApp_UnHookGL2DWindow\n");
+#endif
+}
+
+void Draw2DPluginEntities( VIEWTYPE vt )
+{
+       for(int i = 0; i<l_GL2DWindows.GetSize(); i++ )
+               static_cast<IGL2DWindow*>(l_GL2DWindows.GetAt(i))->Draw2D( vt );
+}
+
+void WINAPI QERApp_HookGL3DWindow(IGL3DWindow* pGLW)
+{
+  l_GL3DWindows.Add( pGLW );
+  pGLW->IncRef();
+}
+
+void WINAPI QERApp_UnHookGL3DWindow(IGL3DWindow* pGLW)
+{
+       for( int i = 0; i < l_GL3DWindows.GetSize(); i++ )
+       {
+               if (l_GL3DWindows.GetAt(i) == pGLW)
+               {
+                       l_GL3DWindows.RemoveAt(i);
+                       pGLW->DecRef();
+                       return;
+               }
+       }
+#ifdef _DEBUG
+       Sys_Printf("ERROR: IGL3DWindow* not found in QERApp_UnHookGL3DWindow\n");
+#endif
+}
+
+void Draw3DPluginEntities()
+{
+       for(int i = 0; i<l_GL3DWindows.GetSize(); i++ )
+               static_cast<IGL3DWindow*>(l_GL3DWindows.GetAt(i))->Draw3D();
+}