]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/points.h
fix
[xonotic/netradiant.git] / radiant / points.h
index bc44cb8ad99c2f8b3c852587bb781e009080f9fa..f9e6d966aa48cd0548ed2dc4b14d4c9730f7c774 100644 (file)
@@ -1,57 +1,60 @@
-/*\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
-// DESCRIPTION:\r
-// header for Pointfile stuff (adding a C++ class to wrap the pointfile thing in the SAX parser)\r
-//\r
-\r
-#ifndef __POINTS__\r
-#define __POINTS__\r
-\r
-void Pointfile_Delete (void);\r
-void WINAPI Pointfile_Check (void);\r
-void Pointfile_Next (void);\r
-void Pointfile_Prev (void);\r
-void Pointfile_Clear (void);\r
-void Pointfile_Draw( void );\r
-void Pointfile_Load( void );\r
-\r
-class CPointfile : public ISAXHandler\r
-{\r
-public:\r
-  CPointfile() { }\r
-  void Init();\r
-  void PushPoint (vec3_t v);\r
-  void GenerateDisplayList();\r
-  // SAX interface\r
-  void saxStartElement (message_info_t *ctx, const xmlChar *name, const xmlChar **attrs);\r
-  void saxEndElement (message_info_t *ctx, const xmlChar *name);\r
-  void saxCharacters (message_info_t *ctx, const xmlChar *ch, int len);\r
-  char *getName();\r
-};\r
-\r
-// instead of using Pointfile_Load you can do it by hand through g_pointfile\r
-// but the usual pointfile mechanism remains the same, use Pointfile_Draw etc.\r
-extern CPointfile g_pointfile;\r
-\r
-#endif\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:
+// header for Pointfile stuff (adding a C++ class to wrap the pointfile thing in the SAX parser)
+//
+
+#ifndef __POINTS__
+#define __POINTS__
+
+void Pointfile_Delete (void);
+void WINAPI Pointfile_Check (void);
+void Pointfile_Next (void);
+void Pointfile_Prev (void);
+void Pointfile_Clear (void);
+void Pointfile_Draw( void );
+void Pointfile_Load( void );
+
+class CPointfile : public ISAXHandler
+{
+public:
+       CPointfile() { }
+       void Init();
+       void PushPoint( vec3_t v );
+       void GenerateDisplayList();
+       // SAX interface
+       void saxStartElement( message_info_t *ctx, const xmlChar *name, const xmlChar **attrs );
+       void saxEndElement( message_info_t *ctx, const xmlChar *name );
+       void saxCharacters( message_info_t *ctx, const xmlChar *ch, int len );
+       char *getName();
+
+       // class is only used for g_pointfile and we should not attempt to free it
+       bool ShouldDelete() { return false; }
+};
+
+// instead of using Pointfile_Load you can do it by hand through g_pointfile
+// but the usual pointfile mechanism remains the same, use Pointfile_Draw etc.
+extern CPointfile g_pointfile;
+
+#endif