-/*\r
-** Doxygen index.html generation file\r
-** \r
-*/\r
-\r
-/*! \mainpage +project+ Doxygen Index\r
- <img src="../images/gtkr_splash.jpg" align="right" hspace="2" vspace="2">\r
- \section intro Introduction\r
-\r
- This documentation was generated from GtkRadiant source code using Doxygen.<br>\r
- Generated from source in: +target+\r
- \r
- \section links Links\r
- <b>General Links</b><br>\r
- <a href="http://www.doxygen.org">Doxygen Homepage</a><br>\r
- <a href="http://www.gtkradiant.com">GtkRadiant Homepage</a><br>\r
- <a href="http://zerowing.idsoftare.com">Zerowing - GtkRadiant Development</a><br>\r
-\r
- <b>Local Links</b><br>\r
- <a href="../reference/index.html">Doxygen Quick Reference (Local)</a><br>\r
-\r
- <p>\r
- <b>GtkRadiant FAQ Links</b><br>\r
- <a href="http://www.qeradiant.com/faq/fom-serve/cache/115.html">GtkRadiant FAQ</a><br>\r
- <a href="http://www.qeradiant.com/faq/fom-serve/cache/181.html">GtkRadiant FAQ: Open Tasks</a><br>\r
- <a href="http://www.qeradiant.com/faq/fom-serve/cache/116.html">GtkRadiant FAQ: Compiling instructions</a><br>\r
- <a href="http://www.qeradiant.com/faq/fom-serve/cache/116.html">GtkRadiant FAQ: Creating/Submitting patches</a><br>\r
- <a href="http://www.qeradiant.com/faq/fom-serve/cache/141.html">GtkRadiant FAQ: Coding Conventions & Guidelines</a><br>\r
- </p>\r
-\r
- <b>Misc Links</b><br>\r
- <a href="http://www.idsoftware.com">idsoftware.com</a><br>\r
- \r
- <p>\r
- <i>\r
- * Note: The content on this page was generated from <a href="doxy__mainpage_8h.html">this</A> file.\r
- It is moved into the <target> path when the doxygen documentation is generated, and removed immediately\r
- afterwards.\r
- </i>\r
- </p>\r
- \r
- <i>This page generated: by <b>+user+</b> on <b>+machine+</b><br>\r
- On +date+\r
- </i>\r
-*/\r
+/*
+** Doxygen index.html generation file
+**
+*/
+
+/*! \mainpage +project+ Doxygen Index
+ <img src="../images/gtkr_splash.jpg" align="right" hspace="2" vspace="2">
+ \section intro Introduction
+
+ This documentation was generated from GtkRadiant source code using Doxygen.<br>
+ Generated from source in: +target+
+
+ \section links Links
+ <b>General Links</b><br>
+ <a href="http://www.doxygen.org">Doxygen Homepage</a><br>
+ <a href="http://www.gtkradiant.com">GtkRadiant Homepage</a><br>
+ <a href="http://zerowing.idsoftare.com">Zerowing - GtkRadiant Development</a><br>
+
+ <b>Local Links</b><br>
+ <a href="../reference/index.html">Doxygen Quick Reference (Local)</a><br>
+
+ <p>
+ <b>GtkRadiant FAQ Links</b><br>
+ <a href="http://www.qeradiant.com/faq/fom-serve/cache/115.html">GtkRadiant FAQ</a><br>
+ <a href="http://www.qeradiant.com/faq/fom-serve/cache/181.html">GtkRadiant FAQ: Open Tasks</a><br>
+ <a href="http://www.qeradiant.com/faq/fom-serve/cache/116.html">GtkRadiant FAQ: Compiling instructions</a><br>
+ <a href="http://www.qeradiant.com/faq/fom-serve/cache/116.html">GtkRadiant FAQ: Creating/Submitting patches</a><br>
+ <a href="http://www.qeradiant.com/faq/fom-serve/cache/141.html">GtkRadiant FAQ: Coding Conventions & Guidelines</a><br>
+ </p>
+
+ <b>Misc Links</b><br>
+ <a href="http://www.idsoftware.com">idsoftware.com</a><br>
+
+ <p>
+ <i>
+ * Note: The content on this page was generated from <a href="doxy__mainpage_8h.html">this</A> file.
+ It is moved into the <target> path when the doxygen documentation is generated, and removed immediately
+ afterwards.
+ </i>
+ </p>
+
+ <i>This page generated: by <b>+user+</b> on <b>+machine+</b><br>
+ On +date+
+ </i>
+*/
-/*\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
-// bkgrnd2d Plugin\r
-//\r
-// Code by reyalP aka Reed Mideke\r
-//\r
-// Based on spritemodel source code by hydra\r
-//\r
-\r
-#include "plugin.h"\r
-\r
-class CBackgroundImage {\r
-private:\r
- qtexture_t *m_tex;\r
- VIEWTYPE m_vt;\r
- \r
-// which components of a vec3_t correspond to x and y in the image\r
- unsigned m_ix,m_iy;\r
-\r
-public:\r
- CBackgroundImage(VIEWTYPE vt);\r
-// ~CBackgroundImage();\r
-\r
- float m_alpha; // vertex alpha\r
- bool m_bActive;\r
- \r
-// x and y axis are in relation to the screen, not world, making rendering\r
-// the same for each view type. Whoever sets them is responsible for \r
-// shuffling.\r
-// units are world units.\r
-// TODO should be private\r
- float m_xmin,m_ymin,m_xmax,m_ymax;\r
-\r
-// load file, create new tex, cleanup old tex, set new tex\r
- bool Load(const char *filename); \r
- void Cleanup(); // free texture, free tex, set make tex NULL\r
- bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins\r
- bool SetExtentsSel(); // set extents by selection\r
- void Render();\r
- bool Valid() { return (m_tex && (m_xmin != m_xmax) && (m_ymin != m_ymax)); }\r
-};\r
-\r
-class CBackgroundRender : public IGL2DWindow {\r
-public:\r
-\r
- CBackgroundRender();\r
- virtual ~CBackgroundRender();\r
-\r
-protected:\r
- int refCount;\r
-\r
-public:\r
-\r
- // IGL2DWindow IGL3DWindow interface\r
- void IncRef() { refCount++; }\r
- void DecRef() { refCount--; if (refCount <= 0) delete this; }\r
- void Draw2D( VIEWTYPE vt );\r
- void Register();\r
-};\r
-\r
-extern CBackgroundImage backgroundXY,backgroundXZ,backgroundYZ;\r
-extern CBackgroundRender render;\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
+*/
+
+//
+// bkgrnd2d Plugin
+//
+// Code by reyalP aka Reed Mideke
+//
+// Based on spritemodel source code by hydra
+//
+
+#include "plugin.h"
+
+class CBackgroundImage {
+private:
+ qtexture_t *m_tex;
+ VIEWTYPE m_vt;
+
+// which components of a vec3_t correspond to x and y in the image
+ unsigned m_ix,m_iy;
+
+public:
+ CBackgroundImage(VIEWTYPE vt);
+// ~CBackgroundImage();
+
+ float m_alpha; // vertex alpha
+ bool m_bActive;
+
+// x and y axis are in relation to the screen, not world, making rendering
+// the same for each view type. Whoever sets them is responsible for
+// shuffling.
+// units are world units.
+// TODO should be private
+ float m_xmin,m_ymin,m_xmax,m_ymax;
+
+// load file, create new tex, cleanup old tex, set new tex
+ bool Load(const char *filename);
+ void Cleanup(); // free texture, free tex, set make tex NULL
+ bool SetExtentsMM(); // set extents by ET mapcoordsmaxs/mapcoordsmins
+ bool SetExtentsSel(); // set extents by selection
+ void Render();
+ bool Valid() { return (m_tex && (m_xmin != m_xmax) && (m_ymin != m_ymax)); }
+};
+
+class CBackgroundRender : public IGL2DWindow {
+public:
+
+ CBackgroundRender();
+ virtual ~CBackgroundRender();
+
+protected:
+ int refCount;
+
+public:
+
+ // IGL2DWindow IGL3DWindow interface
+ void IncRef() { refCount++; }
+ void DecRef() { refCount--; if (refCount <= 0) delete this; }
+ void Draw2D( VIEWTYPE vt );
+ void Register();
+};
+
+extern CBackgroundImage backgroundXY,backgroundXZ,backgroundYZ;
+extern CBackgroundRender render;
+
-/*\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
-// bkgrnd2d Plugin dialog box\r
-//\r
-// Code by reyalP aka Reed Mideke\r
-//\r
-//\r
-\r
-#ifndef _BKGRND2D_DIALOG_H_\r
-#define _BKGRND2D_DIALOG_H_\r
-\r
-void InitBackgroundDialog();\r
-void ShowBackgroundDialog();\r
-void ShowBackgroundDialogPG(int page);\r
-\r
-#endif // _BKGRND2D_DIALOG_H_\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
+*/
+
+//
+// bkgrnd2d Plugin dialog box
+//
+// Code by reyalP aka Reed Mideke
+//
+//
+
+#ifndef _BKGRND2D_DIALOG_H_
+#define _BKGRND2D_DIALOG_H_
+
+void InitBackgroundDialog();
+void ShowBackgroundDialog();
+void ShowBackgroundDialogPG(int page);
+
+#endif // _BKGRND2D_DIALOG_H_
-/*\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
-// bkgrnd2d Plugin\r
-//\r
-// Code by reyalP aka Reed Mideke\r
-//\r
-// Based on spritemodel source code by hydra\r
-//\r
-\r
-#ifndef _PLUGIN_H_\r
-#define _PLUGIN_H_\r
-\r
-/*!\r
-\todo need general notice about lib purpose etc.\r
-and the external dependencies (such as GLib, STL, mathlib etc.)\r
-*/\r
-\r
-#include <stdio.h>\r
-// for CPtrArray for idata.h\r
-#include "missing.h"\r
-\r
-#include "synapse.h"\r
-#include "iplugin.h"\r
-#include "itoolbar.h"\r
-#define USE_QERTABLE_DEFINE\r
-#include "qerplugin.h"\r
-#include "igl.h"\r
-#include "ifilesystem.h"\r
-#include "ientity.h"\r
-#include "idata.h"\r
-\r
-// verbose messages\r
-#define BKGRND2D_DEBUG\r
-\r
-extern _QERFuncTable_1 g_FuncTable;\r
-extern _QERQglTable g_QglTable;\r
-extern _QERFileSystemTable g_FileSystemTable;\r
-extern _QEREntityTable g_EntityTable;\r
-extern _QERAppDataTable g_DataTable;\r
-extern void *g_pMainWidget;\r
-\r
-extern CSynapseServer* g_pSynapseServer;\r
-\r
-class CSynapseClientBkgrnd2d : public CSynapseClient\r
-{\r
-public:\r
- // CSynapseClient API\r
- bool RequestAPI(APIDescriptor_t *pAPI);\r
- const char* GetInfo();\r
- const char* GetName();\r
-\r
- CSynapseClientBkgrnd2d() { }\r
- virtual ~CSynapseClientBkgrnd2d() { }\r
-};\r
-#define MSG_PREFIX "bkgrnd2d: "\r
-#define MSG_WARN "bkgrnd2d WARNING: "\r
-#define BKGRND2D_MINOR "bkgrnd2d"\r
-#define FILETYPE_KEY "bkgrnd2d"\r
-\r
-#endif // _PLUGIN_H_\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
+*/
+
+//
+// bkgrnd2d Plugin
+//
+// Code by reyalP aka Reed Mideke
+//
+// Based on spritemodel source code by hydra
+//
+
+#ifndef _PLUGIN_H_
+#define _PLUGIN_H_
+
+/*!
+\todo need general notice about lib purpose etc.
+and the external dependencies (such as GLib, STL, mathlib etc.)
+*/
+
+#include <stdio.h>
+// for CPtrArray for idata.h
+#include "missing.h"
+
+#include "synapse.h"
+#include "iplugin.h"
+#include "itoolbar.h"
+#define USE_QERTABLE_DEFINE
+#include "qerplugin.h"
+#include "igl.h"
+#include "ifilesystem.h"
+#include "ientity.h"
+#include "idata.h"
+
+// verbose messages
+#define BKGRND2D_DEBUG
+
+extern _QERFuncTable_1 g_FuncTable;
+extern _QERQglTable g_QglTable;
+extern _QERFileSystemTable g_FileSystemTable;
+extern _QEREntityTable g_EntityTable;
+extern _QERAppDataTable g_DataTable;
+extern void *g_pMainWidget;
+
+extern CSynapseServer* g_pSynapseServer;
+
+class CSynapseClientBkgrnd2d : public CSynapseClient
+{
+public:
+ // CSynapseClient API
+ bool RequestAPI(APIDescriptor_t *pAPI);
+ const char* GetInfo();
+ const char* GetName();
+
+ CSynapseClientBkgrnd2d() { }
+ virtual ~CSynapseClientBkgrnd2d() { }
+};
+#define MSG_PREFIX "bkgrnd2d: "
+#define MSG_WARN "bkgrnd2d WARNING: "
+#define BKGRND2D_MINOR "bkgrnd2d"
+#define FILETYPE_KEY "bkgrnd2d"
+
+#endif // _PLUGIN_H_
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#include "StdAfx.h" // Added by ClassView\r
-\r
-class CBspPoint {\r
-public:\r
- float p[3];\r
-};\r
-\r
-class CBspPortal {\r
-public:\r
- CBspPortal();\r
- ~CBspPortal();\r
-\r
- unsigned point_count;\r
- CBspPoint *point;\r
- bool Build(char *def, unsigned int pointCnt, bool bInverse);\r
-};\r
-\r
-\r
-class CBspNode {\r
-public:\r
- CBspPortal *portal;\r
- unsigned int portal_count;\r
-\r
- bool AddPortal(char* def, unsigned int pointCnt, bool bInverse);\r
- unsigned int portal_next;\r
- CBspNode();\r
- ~CBspNode();\r
-};\r
-\r
-\r
-class CPortals {\r
-public:\r
-\r
- CPortals();\r
- ~CPortals();\r
-\r
- void Load(); // use filename in fn\r
- void Purge();\r
-\r
- char fn[PATH_MAX];\r
- CBspNode *node;\r
-\r
- unsigned int node_count;\r
-};\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#include "StdAfx.h" // Added by ClassView
+
+class CBspPoint {
+public:
+ float p[3];
+};
+
+class CBspPortal {
+public:
+ CBspPortal();
+ ~CBspPortal();
+
+ unsigned point_count;
+ CBspPoint *point;
+ bool Build(char *def, unsigned int pointCnt, bool bInverse);
+};
+
+
+class CBspNode {
+public:
+ CBspPortal *portal;
+ unsigned int portal_count;
+
+ bool AddPortal(char* def, unsigned int pointCnt, bool bInverse);
+ unsigned int portal_next;
+ CBspNode();
+ ~CBspNode();
+};
+
+
+class CPortals {
+public:
+
+ CPortals();
+ ~CPortals();
+
+ void Load(); // use filename in fn
+ void Purge();
+
+ char fn[PATH_MAX];
+ CBspNode *node;
+
+ unsigned int node_count;
+};
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DBobView.h: interface for the DBobView class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-class DListener;\r
-\r
-#define BOUNDS_ALL 0\r
-#define BOUNDS_APEX 1\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DBobView : \r
- public IGL2DWindow, \r
- public IGL3DWindow \r
-{\r
-public:\r
- DBobView();\r
- virtual ~DBobView();\r
-\r
-protected:\r
- vec3_t* path;\r
- int refCount;\r
-public:\r
- bool m_bShowExtra;\r
- int boundingShow;\r
- DListener* eyes;\r
- float fVarGravity;\r
-\r
- bool UpdatePath();\r
- char entTarget[256];\r
- char entTrigger[256];\r
- void Begin(const char*, const char*, float, int, float, bool, bool);\r
- bool CalculateTrajectory(vec3_t, vec3_t, float, int, float);\r
-\r
- void SetPath(vec3_t* pPath);\r
- void UnRegister();\r
- void Register();\r
- void Draw3D();\r
- void Draw2D(VIEWTYPE vt);\r
- void IncRef() { refCount++; }\r
- void DecRef() { refCount--; if (refCount <= 0) delete this; }\r
-\r
- float fMultiplier;\r
- bool m_bHooked;\r
- int nPathCount;\r
-};\r
-\r
-#endif // !defined(AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DBobView.h: interface for the DBobView class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_
+
+class DListener;
+
+#define BOUNDS_ALL 0
+#define BOUNDS_APEX 1
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DBobView :
+ public IGL2DWindow,
+ public IGL3DWindow
+{
+public:
+ DBobView();
+ virtual ~DBobView();
+
+protected:
+ vec3_t* path;
+ int refCount;
+public:
+ bool m_bShowExtra;
+ int boundingShow;
+ DListener* eyes;
+ float fVarGravity;
+
+ bool UpdatePath();
+ char entTarget[256];
+ char entTrigger[256];
+ void Begin(const char*, const char*, float, int, float, bool, bool);
+ bool CalculateTrajectory(vec3_t, vec3_t, float, int, float);
+
+ void SetPath(vec3_t* pPath);
+ void UnRegister();
+ void Register();
+ void Draw3D();
+ void Draw2D(VIEWTYPE vt);
+ void IncRef() { refCount++; }
+ void DecRef() { refCount--; if (refCount <= 0) delete this; }
+
+ float fMultiplier;
+ bool m_bHooked;
+ int nPathCount;
+};
+
+#endif // !defined(AFX_BOBVIEW_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DBrush.h: interface for the DBrush class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#include "DPlane.h"\r
-\r
-#define POINT_IN_BRUSH 0\r
-#define POINT_ON_BRUSH 1\r
-#define POINT_OUT_BRUSH 2\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DBrush \r
-{\r
-public:\r
- DPlane* AddFace(vec3_t va, vec3_t vb, vec3_t vc, const char* textureName, bool bDetail);\r
- void SaveToFile(FILE* pFile);\r
-\r
- void Rotate(vec3_t vOrigin, vec3_t vRotation);\r
- void RotateAboutCentre(vec3_t vRotation);\r
-\r
- DPlane* HasPlaneInverted(DPlane* chkPlane);\r
- DPlane* HasPlane(DPlane* chkPlane);\r
- DPlane* AddFace(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* texData);\r
-\r
- bool ResetTextures(const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation);\r
- bool IsDetail();\r
- bool HasTexture(const char* textureName);\r
- bool IntersectsWith(DBrush *chkBrush);\r
- bool IntersectsWith(DPlane* p1, DPlane* p2, vec3_t v);\r
- bool IsCutByPlane(DPlane* cuttingPlane);\r
- bool GetBounds(vec3_t min, vec3_t max); \r
- bool HasPoint(vec3_t pnt);\r
- bool BBoxCollision(DBrush* chkBrush);\r
- bool BBoxTouch(DBrush* chkBrush);\r
-\r
- int BuildPoints();\r
- void BuildBounds();\r
- void BuildFromWinding(DWinding* w);\r
- brush_t* BuildInRadiant(bool allowDestruction, int* changeCnt, entity_t* entity = NULL);\r
-\r
- void ResetChecks(list<Str>* exclusionList);\r
-\r
- void ClearFaces();\r
- void ClearPoints();\r
- \r
- int RemoveRedundantPlanes( void );\r
- void RemovePlane( DPlane* plane );\r
- int PointPosition(vec3_t pnt);\r
- void RemoveFromRadiant( void );\r
-\r
- \r
- void CutByPlane(DPlane* cutPlane, DBrush** newBrush1, DBrush** newBrush2);\r
-\r
- void LoadFromBrush_t(brush_t* brush, bool textured);\r
- void AddPoint(vec3_t pnt);\r
-\r
- DPlane* FindPlaneWithClosestNormal( vec_t* normal );\r
- int FindPointsForPlane( DPlane* plane, DPoint** pnts, int maxpnts );\r
-\r
- DBrush(int ID = -1);\r
- virtual ~DBrush();\r
-\r
- bool operator== (DBrush* other);\r
-\r
-// members\r
- brush_t* QER_brush;\r
- list<DPlane*> faceList;\r
- list<DPoint*> pointList;\r
- int m_nBrushID;\r
- vec3_t bbox_min, bbox_max;\r
- bool bBoundsBuilt;\r
-};\r
-\r
-//typedef CList<DBrush*, DBrush*> DBrushList;\r
-\r
-#endif // !defined(AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DBrush.h: interface for the DBrush class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_
+
+#include "DPlane.h"
+
+#define POINT_IN_BRUSH 0
+#define POINT_ON_BRUSH 1
+#define POINT_OUT_BRUSH 2
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DBrush
+{
+public:
+ DPlane* AddFace(vec3_t va, vec3_t vb, vec3_t vc, const char* textureName, bool bDetail);
+ void SaveToFile(FILE* pFile);
+
+ void Rotate(vec3_t vOrigin, vec3_t vRotation);
+ void RotateAboutCentre(vec3_t vRotation);
+
+ DPlane* HasPlaneInverted(DPlane* chkPlane);
+ DPlane* HasPlane(DPlane* chkPlane);
+ DPlane* AddFace(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* texData);
+
+ bool ResetTextures(const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation);
+ bool IsDetail();
+ bool HasTexture(const char* textureName);
+ bool IntersectsWith(DBrush *chkBrush);
+ bool IntersectsWith(DPlane* p1, DPlane* p2, vec3_t v);
+ bool IsCutByPlane(DPlane* cuttingPlane);
+ bool GetBounds(vec3_t min, vec3_t max);
+ bool HasPoint(vec3_t pnt);
+ bool BBoxCollision(DBrush* chkBrush);
+ bool BBoxTouch(DBrush* chkBrush);
+
+ int BuildPoints();
+ void BuildBounds();
+ void BuildFromWinding(DWinding* w);
+ brush_t* BuildInRadiant(bool allowDestruction, int* changeCnt, entity_t* entity = NULL);
+
+ void ResetChecks(list<Str>* exclusionList);
+
+ void ClearFaces();
+ void ClearPoints();
+
+ int RemoveRedundantPlanes( void );
+ void RemovePlane( DPlane* plane );
+ int PointPosition(vec3_t pnt);
+ void RemoveFromRadiant( void );
+
+
+ void CutByPlane(DPlane* cutPlane, DBrush** newBrush1, DBrush** newBrush2);
+
+ void LoadFromBrush_t(brush_t* brush, bool textured);
+ void AddPoint(vec3_t pnt);
+
+ DPlane* FindPlaneWithClosestNormal( vec_t* normal );
+ int FindPointsForPlane( DPlane* plane, DPoint** pnts, int maxpnts );
+
+ DBrush(int ID = -1);
+ virtual ~DBrush();
+
+ bool operator== (DBrush* other);
+
+// members
+ brush_t* QER_brush;
+ list<DPlane*> faceList;
+ list<DPoint*> pointList;
+ int m_nBrushID;
+ vec3_t bbox_min, bbox_max;
+ bool bBoundsBuilt;
+};
+
+//typedef CList<DBrush*, DBrush*> DBrushList;
+
+#endif // !defined(AFX_DBRUSH_H__35B2C522_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DEPair.h: interface for the DEPair class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DEPair \r
-{\r
-public:\r
- DEPair();\r
- virtual ~DEPair();\r
-\r
- void Build(char* pKey, char* pValue);\r
-\r
- Str key;\r
- Str value;\r
-};\r
-\r
-//typedef CList<DEPair*, DEPair*> DEPairList;\r
-\r
-#endif // !defined(AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DEPair.h: interface for the DEPair class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DEPair
+{
+public:
+ DEPair();
+ virtual ~DEPair();
+
+ void Build(char* pKey, char* pValue);
+
+ Str key;
+ Str value;
+};
+
+//typedef CList<DEPair*, DEPair*> DEPairList;
+
+#endif // !defined(AFX_DEPAIR_H__35B2C521_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DEntity.h: interface for the DEntity class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#include "DBrush.h"\r
-#include "DEPair.h"\r
-#include "DPatch.h"\r
-#include "StdAfx.h" // Added by ClassView\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DEntity \r
-{\r
-public:\r
- void RemoveFromRadiant();\r
- entity_t* QER_Entity;\r
- int m_nID;\r
-\r
-// Constrcution/Destruction\r
- DEntity(char* classname = "worldspawn", int ID = -1); // sets classname\r
- virtual ~DEntity();\r
-// ---------------------------------------------\r
-\r
-// epair functions........\r
- void LoadEPairList(epair_t* epl);\r
- void AddEPair(char* key, char* value);\r
- void ClearEPairs();\r
- DEPair* FindEPairByKey(const char* keyname);\r
-// ---------------------------------------------\r
-\r
-// random functions........\r
- bool ResetTextures(const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation, bool rebuild);\r
- void SaveToFile(FILE* pFile);\r
- void SetClassname(char* classname);\r
- int GetIDMax();\r
-\r
- void BuildInRadiant(bool allowDestruction);\r
- void ResetChecks(list<Str>* exclusionList);\r
- void RemoveNonCheckBrushes(list<Str>* exclusionList, bool useDetail);\r
-\r
- DPlane* AddFaceToBrush(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* faceData, int ID); // slow, try not to use much\r
- int GetBrushCount( void );\r
- DBrush* FindBrushByPointer( brush_t* brush );\r
-// ---------------------------------------------\r
-\r
-\r
-// bool list functions\r
- void SelectBrushes(bool* selectList);\r
- bool* BuildDuplicateList();\r
- bool* BuildIntersectList();\r
-// ---------------------------------------------\r
- \r
-\r
-// brush operations\r
- void ClearBrushes(); // clears brush list and frees memory for brushes\r
-\r
- DBrush* GetBrushForID(int ID);\r
- DBrush* NewBrush(int ID = -1);\r
-// ---------------------------------------------\r
-\r
-// patch operations\r
- void ClearPatches();\r
-\r
- DPatch* NewPatch();\r
-// ---------------------------------------------\r
-\r
-// vars\r
- list<DEPair*> epairList;\r
- list<DBrush*> brushList;\r
- // new patches, wahey!!!\r
- list<DPatch*> patchList;\r
- Str m_Classname;\r
-// ---------------------------------------------\r
-\r
-\r
- int FixBrushes(bool rebuild);\r
-\r
- bool LoadFromEntity(int id, bool bLoadPatches = FALSE);\r
- bool LoadFromEntity(entity_t* ent, bool bLoadPatches = FALSE);\r
- void LoadSelectedBrushes();\r
- void LoadSelectedPatches();\r
-\r
- bool LoadFromPrt(char* filename);\r
-// ---------------------------------------------\r
- void SpawnString(const char* key, const char* defaultstring, const char** out);\r
- void SpawnInt(const char* key, const char* defaultstring, int* out);\r
- void SpawnFloat(const char* key, const char* defaultstring, float* out);\r
- void SpawnVector(const char* key, const char* defaultstring, vec_t* out);\r
-};\r
-\r
-#endif // !defined(AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DEntity.h: interface for the DEntity class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_
+
+#include "DBrush.h"
+#include "DEPair.h"
+#include "DPatch.h"
+#include "StdAfx.h" // Added by ClassView
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DEntity
+{
+public:
+ void RemoveFromRadiant();
+ entity_t* QER_Entity;
+ int m_nID;
+
+// Constrcution/Destruction
+ DEntity(char* classname = "worldspawn", int ID = -1); // sets classname
+ virtual ~DEntity();
+// ---------------------------------------------
+
+// epair functions........
+ void LoadEPairList(epair_t* epl);
+ void AddEPair(char* key, char* value);
+ void ClearEPairs();
+ DEPair* FindEPairByKey(const char* keyname);
+// ---------------------------------------------
+
+// random functions........
+ bool ResetTextures(const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation, bool rebuild);
+ void SaveToFile(FILE* pFile);
+ void SetClassname(char* classname);
+ int GetIDMax();
+
+ void BuildInRadiant(bool allowDestruction);
+ void ResetChecks(list<Str>* exclusionList);
+ void RemoveNonCheckBrushes(list<Str>* exclusionList, bool useDetail);
+
+ DPlane* AddFaceToBrush(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* faceData, int ID); // slow, try not to use much
+ int GetBrushCount( void );
+ DBrush* FindBrushByPointer( brush_t* brush );
+// ---------------------------------------------
+
+
+// bool list functions
+ void SelectBrushes(bool* selectList);
+ bool* BuildDuplicateList();
+ bool* BuildIntersectList();
+// ---------------------------------------------
+
+
+// brush operations
+ void ClearBrushes(); // clears brush list and frees memory for brushes
+
+ DBrush* GetBrushForID(int ID);
+ DBrush* NewBrush(int ID = -1);
+// ---------------------------------------------
+
+// patch operations
+ void ClearPatches();
+
+ DPatch* NewPatch();
+// ---------------------------------------------
+
+// vars
+ list<DEPair*> epairList;
+ list<DBrush*> brushList;
+ // new patches, wahey!!!
+ list<DPatch*> patchList;
+ Str m_Classname;
+// ---------------------------------------------
+
+
+ int FixBrushes(bool rebuild);
+
+ bool LoadFromEntity(int id, bool bLoadPatches = FALSE);
+ bool LoadFromEntity(entity_t* ent, bool bLoadPatches = FALSE);
+ void LoadSelectedBrushes();
+ void LoadSelectedPatches();
+
+ bool LoadFromPrt(char* filename);
+// ---------------------------------------------
+ void SpawnString(const char* key, const char* defaultstring, const char** out);
+ void SpawnInt(const char* key, const char* defaultstring, int* out);
+ void SpawnFloat(const char* key, const char* defaultstring, float* out);
+ void SpawnVector(const char* key, const char* defaultstring, vec_t* out);
+};
+
+#endif // !defined(AFX_DENTITY_H__35B2C523_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DListener.h: interface for the DListener class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-#include "DBobView.h"\r
-\r
-class DListener : public IWindowListener \r
-{\r
-public:\r
- DBobView* parent;\r
- \r
- bool OnMouseMove(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnLButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnMButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnRButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnLButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnMButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnRButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- bool OnKeyPressed(char *s) { return false; }\r
- bool Paint() { return true; }\r
- void Close() { }\r
- \r
- void UnRegister();\r
- void Register();\r
- DListener();\r
- virtual ~DListener();\r
-\r
- void IncRef() { refCount++; }\r
- void DecRef() { refCount--; if (refCount <= 0) delete this; }\r
-\r
-private:\r
- bool m_bHooked;\r
- int refCount;\r
-};\r
-\r
-#endif // !defined(AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DListener.h: interface for the DListener class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+#include "DBobView.h"
+
+class DListener : public IWindowListener
+{
+public:
+ DBobView* parent;
+
+ bool OnMouseMove(guint32 nFlags, gdouble x, gdouble y);
+ bool OnLButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ bool OnMButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ bool OnRButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ bool OnLButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ bool OnMButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ bool OnRButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ bool OnKeyPressed(char *s) { return false; }
+ bool Paint() { return true; }
+ void Close() { }
+
+ void UnRegister();
+ void Register();
+ DListener();
+ virtual ~DListener();
+
+ void IncRef() { refCount++; }
+ void DecRef() { refCount--; if (refCount <= 0) delete this; }
+
+private:
+ bool m_bHooked;
+ int refCount;
+};
+
+#endif // !defined(AFX_DLISTENER_H__53EBE342_F0B2_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DMap.h: interface for the DMap class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_)\r
-#define AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_\r
-\r
-#include "DEntity.h"\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DMap \r
-{\r
-public:\r
- static void RebuildEntity(DEntity* ent);\r
-\r
- void ResetTextures( const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation);\r
- void LoadAll(bool bLoadPatches = FALSE);\r
- void BuildInRadiant(bool bAllowDestruction);\r
- int m_nNextEntity;\r
- DEntity* GetWorldSpawn();\r
- void ClearEntities();\r
-\r
- DEntity* DMap::GetEntityForID(int ID);\r
- DEntity* AddEntity(char* classname = "worldspawn", int ID = -1);\r
-\r
- list<DEntity*> entityList;\r
-\r
- DMap();\r
- virtual ~DMap();\r
-\r
- int FixBrushes(bool rebuild);\r
-};\r
-\r
-#endif // !defined(AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DMap.h: interface for the DMap class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_)
+#define AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_
+
+#include "DEntity.h"
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DMap
+{
+public:
+ static void RebuildEntity(DEntity* ent);
+
+ void ResetTextures( const char* textureName, float fScale[2], float fShift[2], int rotation, const char* newTextureName, int bResetTextureName, int bResetScale[2], int bResetShift[2], int bResetRotation);
+ void LoadAll(bool bLoadPatches = FALSE);
+ void BuildInRadiant(bool bAllowDestruction);
+ int m_nNextEntity;
+ DEntity* GetWorldSpawn();
+ void ClearEntities();
+
+ DEntity* DMap::GetEntityForID(int ID);
+ DEntity* AddEntity(char* classname = "worldspawn", int ID = -1);
+
+ list<DEntity*> entityList;
+
+ DMap();
+ virtual ~DMap();
+
+ int FixBrushes(bool rebuild);
+};
+
+#endif // !defined(AFX_DMAP_H__ACAE597A_D26D_49AD_AA69_EDE743DB54FA__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DPatch.h: interface for the DPatch class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_)\r
-#define AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_\r
-\r
-#include "StdAfx.h" // Added by ClassView\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-typedef struct\r
-{ \r
- bool mergable;\r
- int pos1;\r
- int pos2;\r
-} patch_merge_t;\r
-\r
-class DPatch \r
-{\r
-public:\r
- list<DPatch> Split(bool rows, bool cols);\r
- void Transpose();\r
- void Invert();\r
- DPatch* MergePatches(patch_merge_t merge_info, DPatch* p1, DPatch* p2);\r
- patch_merge_t IsMergable(DPatch* other);\r
- bool ResetTextures(const char *oldTextureName, const char *newTextureName);\r
- void RemoveFromRadiant(void);\r
- brush_t* QER_brush;\r
- void LoadFromBrush_t(brush_t* brush);\r
- patchMesh_t* QER_patch;\r
- void BuildInRadiant(void* entity = NULL);\r
- void SetTexture(const char* textureName);\r
- char texture[256];\r
- int width, height;\r
- drawVert_t points[MAX_PATCH_WIDTH][MAX_PATCH_HEIGHT];\r
- DPatch();\r
- virtual ~DPatch();\r
-\r
-};\r
-\r
-#endif // !defined(AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DPatch.h: interface for the DPatch class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_)
+#define AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_
+
+#include "StdAfx.h" // Added by ClassView
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+typedef struct
+{
+ bool mergable;
+ int pos1;
+ int pos2;
+} patch_merge_t;
+
+class DPatch
+{
+public:
+ list<DPatch> Split(bool rows, bool cols);
+ void Transpose();
+ void Invert();
+ DPatch* MergePatches(patch_merge_t merge_info, DPatch* p1, DPatch* p2);
+ patch_merge_t IsMergable(DPatch* other);
+ bool ResetTextures(const char *oldTextureName, const char *newTextureName);
+ void RemoveFromRadiant(void);
+ brush_t* QER_brush;
+ void LoadFromBrush_t(brush_t* brush);
+ patchMesh_t* QER_patch;
+ void BuildInRadiant(void* entity = NULL);
+ void SetTexture(const char* textureName);
+ char texture[256];
+ int width, height;
+ drawVert_t points[MAX_PATCH_WIDTH][MAX_PATCH_HEIGHT];
+ DPatch();
+ virtual ~DPatch();
+
+};
+
+#endif // !defined(AFX_DPATCH_H__26C6B083_CE5B_420B_836B_1DDA733C04CE__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DPlane.h: interface for the DPlane class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#include "DPoint.h"\r
-\r
-#define FACE_DETAIL 0x8000000\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DWinding;\r
-\r
-class DPlane \r
-{\r
-public:\r
- DPlane(vec3_t va, vec3_t vb, vec3_t vc, const char* textureName, bool bDetail);\r
- void ScaleTexture();\r
- DWinding* BaseWindingForPlane();\r
-\r
- void Rebuild();\r
-\r
- bool AddToBrush_t(brush_t *brush);\r
- bool operator != (DPlane& other);\r
- bool operator == (DPlane& other);\r
-\r
- bool IsRedundant(list<DPoint*>& pointList);\r
- bool PlaneIntersection(DPlane* pl1, DPlane* pl2, vec3_t out);;\r
-\r
- vec_t DistanceToPoint(vec3_t pnt);\r
-\r
- DPlane(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* texData);\r
- DPlane() { }\r
- virtual ~DPlane();\r
-\r
- bool m_bChkOk;\r
- _QERFaceData texInfo;\r
- vec3_t points[3]; // djbob:do we really need these any more?\r
- vec3_t normal;\r
- float _d;\r
-};\r
-\r
-//typedef CList<DPlane*, DPlane*> DPlaneList;\r
-#endif // !defined(AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DPlane.h: interface for the DPlane class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_
+
+#include "DPoint.h"
+
+#define FACE_DETAIL 0x8000000
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DWinding;
+
+class DPlane
+{
+public:
+ DPlane(vec3_t va, vec3_t vb, vec3_t vc, const char* textureName, bool bDetail);
+ void ScaleTexture();
+ DWinding* BaseWindingForPlane();
+
+ void Rebuild();
+
+ bool AddToBrush_t(brush_t *brush);
+ bool operator != (DPlane& other);
+ bool operator == (DPlane& other);
+
+ bool IsRedundant(list<DPoint*>& pointList);
+ bool PlaneIntersection(DPlane* pl1, DPlane* pl2, vec3_t out);;
+
+ vec_t DistanceToPoint(vec3_t pnt);
+
+ DPlane(vec3_t va, vec3_t vb, vec3_t vc, _QERFaceData* texData);
+ DPlane() { }
+ virtual ~DPlane();
+
+ bool m_bChkOk;
+ _QERFaceData texInfo;
+ vec3_t points[3]; // djbob:do we really need these any more?
+ vec3_t normal;
+ float _d;
+};
+
+//typedef CList<DPlane*, DPlane*> DPlaneList;
+#endif // !defined(AFX_DPLANE_H__FC37C021_F0A1_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DPoint.h: interface for the DPoint class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DPoint \r
-{\r
-public:\r
- DPoint();\r
- virtual ~DPoint();\r
-\r
- bool operator ==(vec3_t other);\r
-\r
- vec3_t _pnt;\r
- unsigned char m_uData;\r
-};\r
-\r
-//typedef CList<DPoint*, DPoint*> DPointList;\r
-\r
-#endif // !defined(AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DPoint.h: interface for the DPoint class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DPoint
+{
+public:
+ DPoint();
+ virtual ~DPoint();
+
+ bool operator ==(vec3_t other);
+
+ vec3_t _pnt;
+ unsigned char m_uData;
+};
+
+//typedef CList<DPoint*, DPoint*> DPointList;
+
+#endif // !defined(AFX_DPOINT_H__FC37C022_F0A1_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DShape.h: interface for the DShape class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_)\r
-#define AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_\r
-\r
-#include "DMap.h" // Added by ClassView\r
-#include "StdAfx.h" // Added by ClassView\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-// defines for polygon stuff\r
-#define MAX_POLYGON_FACES 128\r
-\r
-extern bool bFacesAll[];\r
-\r
-class DShape \r
-{\r
-public:\r
- bool BuildPit(vec3_t min, vec3_t max);\r
- void BuildBorderedPrism(vec3_t min, vec3_t max, int nSides, int nBorder, bool bAlignTop);\r
- void BuildInversePrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);\r
- void BuildRegularPrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);\r
- \r
- int m_nNextBrush;\r
- static DBrush* GetBoundingCube_Ext(vec3_t min, vec3_t max, const char* textureName, bool* bUseFaces = bFacesAll, bool detail = false);\r
-\r
- DShape();\r
- virtual ~DShape();\r
-\r
- void Commit();\r
-private:\r
- DBrush* GetBoundingCube(vec3_t min, vec3_t max, const char* textureName, DEntity* ent = NULL, bool* bUseFaces = bFacesAll);\r
-\r
- DMap m_Container;\r
-};\r
-\r
-#endif // !defined(AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DShape.h: interface for the DShape class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_)
+#define AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_
+
+#include "DMap.h" // Added by ClassView
+#include "StdAfx.h" // Added by ClassView
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+// defines for polygon stuff
+#define MAX_POLYGON_FACES 128
+
+extern bool bFacesAll[];
+
+class DShape
+{
+public:
+ bool BuildPit(vec3_t min, vec3_t max);
+ void BuildBorderedPrism(vec3_t min, vec3_t max, int nSides, int nBorder, bool bAlignTop);
+ void BuildInversePrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);
+ void BuildRegularPrism(vec3_t min, vec3_t max, int nSides, bool bAlignTop);
+
+ int m_nNextBrush;
+ static DBrush* GetBoundingCube_Ext(vec3_t min, vec3_t max, const char* textureName, bool* bUseFaces = bFacesAll, bool detail = false);
+
+ DShape();
+ virtual ~DShape();
+
+ void Commit();
+private:
+ DBrush* GetBoundingCube(vec3_t min, vec3_t max, const char* textureName, DEntity* ent = NULL, bool* bUseFaces = bFacesAll);
+
+ DMap m_Container;
+};
+
+#endif // !defined(AFX_DSHAPE_H__0B30B302_9D21_4C2D_836A_61F3C8D4244D__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DTrainDrawer.h: interface for the DTrainDrawer class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#include "DEntity.h"\r
-\r
-#if _MSC_VER > 1000\r
-\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-typedef struct {\r
- char strName[64];\r
-\r
- vec3_t vOrigin;\r
-} controlPoint_t;\r
-\r
-typedef struct {\r
- controlPoint_t point;\r
-\r
- char strControl[64];\r
- char strTarget[64];\r
-\r
- list<controlPoint_t> m_pointList;\r
- list<DPoint> m_vertexList;\r
-\r
- controlPoint_t* pTarget;\r
-} splinePoint_t;\r
-\r
-class DTrainDrawer :\r
- public IGL2DWindow,\r
- public IGL3DWindow\r
-{\r
-private:\r
- list<splinePoint_t*> m_splineList;\r
- list<controlPoint_t*> m_pointList;\r
- int refCount;\r
-\r
- bool m_bHooked;\r
- bool m_bDisplay;\r
-public:\r
- void UnRegister();\r
- void Register();\r
- \r
- DTrainDrawer();\r
- virtual ~DTrainDrawer(void);\r
-\r
- void Draw3D();\r
- void Draw2D(VIEWTYPE vt);\r
- void IncRef() { refCount++; }\r
- void DecRef() { refCount--; if (refCount <= 0) delete this; }\r
- void ClearSplines();\r
- void ClearPoints();\r
- void BuildPaths();\r
- void AddControlPoint(const char* name, vec_t* origin);\r
- splinePoint_t* AddSplinePoint(const char* name, const char* target, vec_t* origin);\r
- controlPoint_t* FindControlPoint(const char* name);\r
-};\r
-\r
-#endif // !defined(AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DTrainDrawer.h: interface for the DTrainDrawer class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_
+
+#include "DEntity.h"
+
+#if _MSC_VER > 1000
+
+#pragma once
+#endif // _MSC_VER > 1000
+
+typedef struct {
+ char strName[64];
+
+ vec3_t vOrigin;
+} controlPoint_t;
+
+typedef struct {
+ controlPoint_t point;
+
+ char strControl[64];
+ char strTarget[64];
+
+ list<controlPoint_t> m_pointList;
+ list<DPoint> m_vertexList;
+
+ controlPoint_t* pTarget;
+} splinePoint_t;
+
+class DTrainDrawer :
+ public IGL2DWindow,
+ public IGL3DWindow
+{
+private:
+ list<splinePoint_t*> m_splineList;
+ list<controlPoint_t*> m_pointList;
+ int refCount;
+
+ bool m_bHooked;
+ bool m_bDisplay;
+public:
+ void UnRegister();
+ void Register();
+
+ DTrainDrawer();
+ virtual ~DTrainDrawer(void);
+
+ void Draw3D();
+ void Draw2D(VIEWTYPE vt);
+ void IncRef() { refCount++; }
+ void DecRef() { refCount--; if (refCount <= 0) delete this; }
+ void ClearSplines();
+ void ClearPoints();
+ void BuildPaths();
+ void AddControlPoint(const char* name, vec_t* origin);
+ splinePoint_t* AddSplinePoint(const char* name, const char* target, vec_t* origin);
+ controlPoint_t* FindControlPoint(const char* name);
+};
+
+#endif // !defined(AFX_TRAINDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#ifndef __DTREE_H__\r
-#define __DTREE_H__\r
-\r
-#include "../include/igl.h"\r
-#include "DEntity.h"\r
-#include "misc.h"\r
-#include "ScriptParser.h"\r
-\r
-#define MAX_QPATH 64\r
-\r
-typedef struct treeModel_s {\r
- char name[MAX_QPATH];\r
-} treeModel_t;\r
-\r
-#define MAX_TP_MODELS 256\r
-\r
-class DTreePlanter : public IWindowListener {\r
-public:\r
- virtual bool OnMouseMove(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnLButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnMButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnRButtonDown(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnLButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnMButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnRButtonUp(guint32 nFlags, gdouble x, gdouble y);\r
- virtual bool OnKeyPressed(char *s) { return false; }\r
- virtual bool Paint() { return true; }\r
- virtual void Close() { }\r
- \r
- DTreePlanter() {\r
- m_refCount = 1;\r
- m_hooked = false;\r
- m_XYWrapper = NULL;\r
- m_numModels = 0;\r
- m_offset = 0;\r
- m_maxPitch = 0;\r
- m_minPitch = 0;\r
- m_maxYaw = 0;\r
- m_minYaw = 0;\r
- m_setAngles = false;\r
- m_useScale = false;\r
- m_autoLink = false;\r
- m_linkNum = 0;\r
-\r
- Register();\r
-\r
- m_world.LoadSelectedBrushes();\r
-\r
- char buffer[256];\r
- GetFilename( buffer, "bt/tp_ent.txt" );\r
-\r
- FILE* file = fopen( buffer, "rb" );\r
- if(file) {\r
- fseek( file, 0, SEEK_END );\r
- int len = ftell( file );\r
- fseek( file, 0, SEEK_SET );\r
-\r
- if(len) {\r
- char* buf = new char[len+1];\r
- buf[len] = '\0';\r
- // parser will do the cleanup, dont delete.\r
-\r
- fread( buf, len, 1, file );\r
-\r
- CScriptParser parser;\r
- parser.SetScript( buf );\r
-\r
- ReadConfig( &parser );\r
- }\r
-\r
- fclose( file );\r
- }\r
- }\r
-\r
-#define MT(t) !stricmp( pToken, t )\r
-#define GT pToken = pScriptParser->GetToken( true )\r
-#define CT if(!*pToken) { return; }\r
-\r
- void ReadConfig( CScriptParser* pScriptParser ) {\r
- const char* GT;\r
- CT;\r
-\r
- do {\r
- GT;\r
- if(*pToken == '}') {\r
- break;\r
- }\r
-\r
- if(MT("model")) {\r
- if(m_numModels >= MAX_TP_MODELS) {\r
- return;\r
- }\r
-\r
- GT; CT;\r
-\r
- strncpy( m_trees[m_numModels++].name, pToken, MAX_QPATH );\r
- } else if(MT("link")) {\r
- GT; CT;\r
-\r
- strncpy( m_linkName, pToken, MAX_QPATH );\r
-\r
- m_autoLink = true;\r
- } else if(MT("entity")) {\r
- GT; CT;\r
-\r
- strncpy( m_entType, pToken, MAX_QPATH );\r
- } else if(MT("offset")) {\r
- GT; CT;\r
-\r
- m_offset = atoi(pToken);\r
- } else if(MT("pitch")) {\r
- GT; CT;\r
-\r
- m_minPitch = atoi(pToken);\r
-\r
- GT; CT;\r
-\r
- m_maxPitch = atoi(pToken);\r
-\r
- m_setAngles = true;\r
- } else if(MT("yaw")) {\r
- GT; CT;\r
-\r
- m_minYaw = atoi(pToken);\r
-\r
- GT; CT;\r
-\r
- m_maxYaw = atoi(pToken);\r
-\r
- m_setAngles = true;\r
- } else if(MT("scale")) {\r
- GT; CT;\r
-\r
- m_minScale = static_cast< float >( atof( pToken ) );\r
-\r
- GT; CT;\r
-\r
- m_maxScale = static_cast< float >( atof( pToken ) );\r
-\r
- m_useScale = true;\r
- } else if(MT("numlinks")) {\r
- GT; CT;\r
-\r
- m_linkNum = atoi( pToken );\r
- }\r
- } while( true );\r
- }\r
-\r
- virtual ~DTreePlanter() {\r
- UnRegister();\r
- }\r
-\r
- virtual void IncRef() { m_refCount++; }\r
- virtual void DecRef() { m_refCount--; if (m_refCount <= 0) delete this; }\r
-\r
- void Register() {\r
- if(!m_hooked) {\r
- g_MessageTable.m_pfnHookWindow( this );\r
- m_XYWrapper = g_MessageTable.m_pfnGetXYWndWrapper();\r
- m_hooked = true;\r
- }\r
- }\r
-\r
- void UnRegister() {\r
- if(m_hooked) {\r
- g_MessageTable.m_pfnUnHookWindow( this );\r
- m_XYWrapper = NULL;\r
- m_hooked = false;\r
- }\r
- }\r
-\r
- bool FindDropPoint(vec3_t in, vec3_t out);\r
- void DropEntsToGround( void );\r
- void MakeChain( void );\r
- void SelectChain( void );\r
-\r
-private:\r
- IXYWndWrapper* m_XYWrapper;\r
- DEntity m_world;\r
-\r
- treeModel_t m_trees[MAX_TP_MODELS];\r
-\r
- int m_refCount;\r
- int m_numModels;\r
- int m_offset;\r
- int m_maxPitch;\r
- int m_minPitch;\r
- int m_maxYaw;\r
- int m_minYaw;\r
-\r
- char m_entType[MAX_QPATH];\r
- char m_linkName[MAX_QPATH];\r
- int m_linkNum;\r
-\r
- float m_minScale;\r
- float m_maxScale;\r
-\r
- bool m_hooked;\r
- bool m_useScale;\r
- bool m_setAngles;\r
- bool m_autoLink;\r
-};\r
-\r
-#endif\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __DTREE_H__
+#define __DTREE_H__
+
+#include "../include/igl.h"
+#include "DEntity.h"
+#include "misc.h"
+#include "ScriptParser.h"
+
+#define MAX_QPATH 64
+
+typedef struct treeModel_s {
+ char name[MAX_QPATH];
+} treeModel_t;
+
+#define MAX_TP_MODELS 256
+
+class DTreePlanter : public IWindowListener {
+public:
+ virtual bool OnMouseMove(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnLButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnMButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnRButtonDown(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnLButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnMButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnRButtonUp(guint32 nFlags, gdouble x, gdouble y);
+ virtual bool OnKeyPressed(char *s) { return false; }
+ virtual bool Paint() { return true; }
+ virtual void Close() { }
+
+ DTreePlanter() {
+ m_refCount = 1;
+ m_hooked = false;
+ m_XYWrapper = NULL;
+ m_numModels = 0;
+ m_offset = 0;
+ m_maxPitch = 0;
+ m_minPitch = 0;
+ m_maxYaw = 0;
+ m_minYaw = 0;
+ m_setAngles = false;
+ m_useScale = false;
+ m_autoLink = false;
+ m_linkNum = 0;
+
+ Register();
+
+ m_world.LoadSelectedBrushes();
+
+ char buffer[256];
+ GetFilename( buffer, "bt/tp_ent.txt" );
+
+ FILE* file = fopen( buffer, "rb" );
+ if(file) {
+ fseek( file, 0, SEEK_END );
+ int len = ftell( file );
+ fseek( file, 0, SEEK_SET );
+
+ if(len) {
+ char* buf = new char[len+1];
+ buf[len] = '\0';
+ // parser will do the cleanup, dont delete.
+
+ fread( buf, len, 1, file );
+
+ CScriptParser parser;
+ parser.SetScript( buf );
+
+ ReadConfig( &parser );
+ }
+
+ fclose( file );
+ }
+ }
+
+#define MT(t) !stricmp( pToken, t )
+#define GT pToken = pScriptParser->GetToken( true )
+#define CT if(!*pToken) { return; }
+
+ void ReadConfig( CScriptParser* pScriptParser ) {
+ const char* GT;
+ CT;
+
+ do {
+ GT;
+ if(*pToken == '}') {
+ break;
+ }
+
+ if(MT("model")) {
+ if(m_numModels >= MAX_TP_MODELS) {
+ return;
+ }
+
+ GT; CT;
+
+ strncpy( m_trees[m_numModels++].name, pToken, MAX_QPATH );
+ } else if(MT("link")) {
+ GT; CT;
+
+ strncpy( m_linkName, pToken, MAX_QPATH );
+
+ m_autoLink = true;
+ } else if(MT("entity")) {
+ GT; CT;
+
+ strncpy( m_entType, pToken, MAX_QPATH );
+ } else if(MT("offset")) {
+ GT; CT;
+
+ m_offset = atoi(pToken);
+ } else if(MT("pitch")) {
+ GT; CT;
+
+ m_minPitch = atoi(pToken);
+
+ GT; CT;
+
+ m_maxPitch = atoi(pToken);
+
+ m_setAngles = true;
+ } else if(MT("yaw")) {
+ GT; CT;
+
+ m_minYaw = atoi(pToken);
+
+ GT; CT;
+
+ m_maxYaw = atoi(pToken);
+
+ m_setAngles = true;
+ } else if(MT("scale")) {
+ GT; CT;
+
+ m_minScale = static_cast< float >( atof( pToken ) );
+
+ GT; CT;
+
+ m_maxScale = static_cast< float >( atof( pToken ) );
+
+ m_useScale = true;
+ } else if(MT("numlinks")) {
+ GT; CT;
+
+ m_linkNum = atoi( pToken );
+ }
+ } while( true );
+ }
+
+ virtual ~DTreePlanter() {
+ UnRegister();
+ }
+
+ virtual void IncRef() { m_refCount++; }
+ virtual void DecRef() { m_refCount--; if (m_refCount <= 0) delete this; }
+
+ void Register() {
+ if(!m_hooked) {
+ g_MessageTable.m_pfnHookWindow( this );
+ m_XYWrapper = g_MessageTable.m_pfnGetXYWndWrapper();
+ m_hooked = true;
+ }
+ }
+
+ void UnRegister() {
+ if(m_hooked) {
+ g_MessageTable.m_pfnUnHookWindow( this );
+ m_XYWrapper = NULL;
+ m_hooked = false;
+ }
+ }
+
+ bool FindDropPoint(vec3_t in, vec3_t out);
+ void DropEntsToGround( void );
+ void MakeChain( void );
+ void SelectChain( void );
+
+private:
+ IXYWndWrapper* m_XYWrapper;
+ DEntity m_world;
+
+ treeModel_t m_trees[MAX_TP_MODELS];
+
+ int m_refCount;
+ int m_numModels;
+ int m_offset;
+ int m_maxPitch;
+ int m_minPitch;
+ int m_maxYaw;
+ int m_minYaw;
+
+ char m_entType[MAX_QPATH];
+ char m_linkName[MAX_QPATH];
+ int m_linkNum;
+
+ float m_minScale;
+ float m_maxScale;
+
+ bool m_hooked;
+ bool m_useScale;
+ bool m_setAngles;
+ bool m_autoLink;
+};
+
+#endif
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DBobView.h: interface for the DBobView class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#include "DWinding.h"\r
-\r
-#if _MSC_VER > 1000\r
-\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DVisDrawer : \r
- public IGL2DWindow, \r
- public IGL3DWindow \r
-{\r
-public:\r
- DVisDrawer();\r
- virtual ~DVisDrawer();\r
-\r
-protected:\r
- list<DWinding*>* m_list;\r
- int refCount;\r
-public:\r
- void ClearPoints();\r
- void SetList(list<DWinding*>* pointList);\r
- void UnRegister();\r
- void Register();\r
- void Draw3D();\r
- void Draw2D(VIEWTYPE vt);\r
- void IncRef() { refCount++; }\r
- void DecRef() { refCount--; if (refCount <= 0) delete this; }\r
-\r
- bool m_bHooked;\r
-};\r
-\r
-#endif // !defined(AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DBobView.h: interface for the DBobView class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_
+
+#include "DWinding.h"
+
+#if _MSC_VER > 1000
+
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DVisDrawer :
+ public IGL2DWindow,
+ public IGL3DWindow
+{
+public:
+ DVisDrawer();
+ virtual ~DVisDrawer();
+
+protected:
+ list<DWinding*>* m_list;
+ int refCount;
+public:
+ void ClearPoints();
+ void SetList(list<DWinding*>* pointList);
+ void UnRegister();
+ void Register();
+ void Draw3D();
+ void Draw2D(VIEWTYPE vt);
+ void IncRef() { refCount++; }
+ void DecRef() { refCount--; if (refCount <= 0) delete this; }
+
+ bool m_bHooked;
+};
+
+#endif // !defined(AFX_VISDRAWER_H__6E36062A_EF0B_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// DWinding.h: interface for the DWinding class.\r
-//\r
-//////////////////////////////////////////////////////////////////////\r
-\r
-#if !defined(AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-\r
-class DPlane;\r
-\r
-class DWinding \r
-{\r
-public:\r
- DWinding();\r
- virtual ~DWinding();\r
-\r
- void AllocWinding(int points);\r
-\r
- bool ChopWinding(DPlane* chopPlane);\r
- bool ChopWindingInPlace(DPlane* chopPlane, vec_t ON_EPSILON);\r
- void ClipWindingEpsilon(DPlane* chopPlane, vec_t epsilon, DWinding** front, DWinding** back);\r
-\r
- void CheckWinding();\r
- void WindingCentre(vec3_t centre);\r
- void WindingBounds(vec3_t mins, vec3_t maxs);\r
- void RemoveColinearPoints();\r
-\r
- DWinding* ReverseWinding();\r
- DWinding* CopyWinding();\r
- DPlane* WindingPlane();\r
-\r
- int WindingOnPlaneSide(vec3_t normal, vec_t dist);\r
-\r
- vec_t WindingArea();\r
-\r
-// members\r
- int numpoints;\r
- vec3_t* p;\r
- vec3_t clr;\r
-};\r
-\r
-#define MAX_POINTS_ON_WINDING 64\r
-\r
-#define ON_EPSILON 0.01\r
-\r
-#endif // !defined(AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// DWinding.h: interface for the DWinding class.
+//
+//////////////////////////////////////////////////////////////////////
+
+#if !defined(AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+
+class DPlane;
+
+class DWinding
+{
+public:
+ DWinding();
+ virtual ~DWinding();
+
+ void AllocWinding(int points);
+
+ bool ChopWinding(DPlane* chopPlane);
+ bool ChopWindingInPlace(DPlane* chopPlane, vec_t ON_EPSILON);
+ void ClipWindingEpsilon(DPlane* chopPlane, vec_t epsilon, DWinding** front, DWinding** back);
+
+ void CheckWinding();
+ void WindingCentre(vec3_t centre);
+ void WindingBounds(vec3_t mins, vec3_t maxs);
+ void RemoveColinearPoints();
+
+ DWinding* ReverseWinding();
+ DWinding* CopyWinding();
+ DPlane* WindingPlane();
+
+ int WindingOnPlaneSide(vec3_t normal, vec_t dist);
+
+ vec_t WindingArea();
+
+// members
+ int numpoints;
+ vec3_t* p;
+ vec3_t clr;
+};
+
+#define MAX_POINTS_ON_WINDING 64
+
+#define ON_EPSILON 0.01
+
+#endif // !defined(AFX_DWINDING_H__35B2C524_F0A7_11D4_ACF7_004095A18133__INCLUDED_)
-\r
-#ifndef _SCRIPTPARSER_H_\r
-#define _SCRIPTPARSER_H_\r
-\r
-#include "interfaces/IScriptParser.h"\r
-\r
-#define SP_MAX_BREAKCHARS 16\r
-\r
-class CScriptParser: public IScriptParser {\r
-public:\r
- CScriptParser(void);\r
- ~CScriptParser(void);\r
-private:\r
- char m_breakChars[SP_MAX_BREAKCHARS];\r
- char* m_pScript;\r
- char* m_pScriptSection;\r
- char* m_pLastScriptSection;\r
- char* m_pToken;\r
-\r
- void SkipWhitespace(bool* pbNewLines);\r
- void ClearBuffer(void);\r
- const char* MakeToken(const char* pToken);\r
- bool IsBreakChar(char c);\r
-public:\r
- const char* GetToken(bool bAllowLinebreaks);\r
- void SkipBracedSection(void);\r
- void SkipRestOfLine(void);\r
- void UndoGetToken(void);\r
- void ResetParseSession(void);\r
-\r
- char* GetBufferCopy(void);\r
- int GetTokenOffset(void);\r
-\r
- void LoadScript(const char* pScript);\r
- void SetScript(char* pScript);\r
-\r
- void AddBreakChar(char c);\r
-private:\r
-};\r
-\r
-#endif\r
+
+#ifndef _SCRIPTPARSER_H_
+#define _SCRIPTPARSER_H_
+
+#include "interfaces/IScriptParser.h"
+
+#define SP_MAX_BREAKCHARS 16
+
+class CScriptParser: public IScriptParser {
+public:
+ CScriptParser(void);
+ ~CScriptParser(void);
+private:
+ char m_breakChars[SP_MAX_BREAKCHARS];
+ char* m_pScript;
+ char* m_pScriptSection;
+ char* m_pLastScriptSection;
+ char* m_pToken;
+
+ void SkipWhitespace(bool* pbNewLines);
+ void ClearBuffer(void);
+ const char* MakeToken(const char* pToken);
+ bool IsBreakChar(char c);
+public:
+ const char* GetToken(bool bAllowLinebreaks);
+ void SkipBracedSection(void);
+ void SkipRestOfLine(void);
+ void UndoGetToken(void);
+ void ResetParseSession(void);
+
+ char* GetBufferCopy(void);
+ int GetTokenOffset(void);
+
+ void LoadScript(const char* pScript);
+ void SetScript(char* pScript);
+
+ void AddBreakChar(char c);
+private:
+};
+
+#endif
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#ifndef __STDAFX_BOBTOOLZ__\r
-#define __STDAFX_BOBTOOLZ__\r
-\r
-#define VC_EXTRALEAN\r
-\r
-#ifdef _WIN32\r
-#pragma warning(disable : 4786)\r
-#endif\r
-\r
-#define BOBTOOLZ_MINOR "bobtoolz"\r
-\r
-#include <gdk/gdkkeysyms.h>\r
-#include <gtk/gtk.h>\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-\r
-#include "time.h"\r
-\r
-#if defined (__linux__) || defined (__APPLE__)\r
-\r
-// Necessary for proper boolean type declaration\r
-#include "qertypes.h"\r
-\r
-#include <GL/glx.h>\r
-\r
-typedef void* HMODULE;\r
-typedef void* LPVOID;\r
-typedef char* LPCSTR;\r
-//typedef int bool;\r
-\r
-#define MB_OK 0x00000000L\r
-#define MB_OKCANCEL 0x00000001L\r
-#define MB_ABORTRETRYIGNORE 0x00000002L\r
-#define MB_YESNOCANCEL 0x00000003L\r
-#define MB_YESNO 0x00000004L\r
-#define MB_RETRYCANCEL 0x00000005L\r
- \r
- \r
-#define MB_ICONHAND 0x00000010L\r
-#define MB_ICONQUESTION 0x00000020L\r
-#define MB_ICONEXCLAMATION 0x00000030L\r
-#define MB_ICONASTERISK 0x00000040L\r
- \r
-#define MB_USERICON 0x00000080L\r
-#define MB_ICONWARNING MB_ICONEXCLAMATION\r
-#define MB_ICONERROR MB_ICONHAND\r
-#define MB_ICONINFORMATION MB_ICONASTERISK\r
-#define MB_ICONSTOP MB_ICONHAND\r
- \r
-#define MB_TYPEMASK 0x0000000FL\r
-#define MB_ICONMASK 0x000000F0L\r
-#define MB_DEFMASK 0x00000F00L\r
-#define MB_MODEMASK 0x00003000L\r
-#define MB_MISCMASK 0x0000C000L\r
- \r
-#define IDOK 1\r
-#define IDCANCEL 2\r
-#define IDABORT 3\r
-#define IDRETRY 4\r
-#define IDIGNORE 5\r
-#define IDYES 6\r
-#define IDNO 7\r
-\r
-#define WINAPI\r
-#define APIENTRY\r
-\r
-#ifndef GUID_DEFINED\r
-#define GUID_DEFINED\r
-typedef struct _GUID\r
-{\r
- unsigned long Data1;\r
- unsigned short Data2;\r
- unsigned short Data3;\r
- unsigned char Data4[8];\r
-} GUID;\r
-\r
-#define stricmp strcasecmp\r
-\r
-#endif\r
- \r
-#if defined(__cplusplus)\r
-#ifndef _REFGUID_DEFINED\r
-#define _REFGUID_DEFINED\r
-#define REFGUID const GUID &\r
-#endif // !_REFGUID_DEFINED\r
-#endif\r
-\r
-typedef struct tagRECT\r
-{\r
- long left;\r
- long top;\r
- long right;\r
- long bottom;\r
-} RECT, *PRECT, *LPRECT;\r
-\r
-typedef uint UINT;\r
-\r
-#endif // __linux__\r
-\r
-#include "synapse.h"\r
-#include "iplugin.h"\r
-#define USE_QERTABLE_DEFINE\r
-\r
-#include "missing.h" // temporary stuff, needs to be removed\r
-\r
-#include "str.h"\r
-#include "qertypes.h"\r
-#include "qerplugin.h"\r
-#include "idata.h"\r
-#include "ibrush.h"\r
-#include "iselectedface.h"\r
-#include "ishaders.h"\r
-#include "ibspfrontend.h"\r
-#include "iui.h"\r
-#include "igl.h"\r
-#include "itoolbar.h"\r
-#include "ientity.h"\r
-\r
-#include "mathlib.h"\r
-\r
-extern _QERFuncTable_1 g_FuncTable;\r
-extern _QERAppDataTable g_AppDataTable;\r
-extern _QERBrushTable g_BrushTable;\r
-extern _QERSelectedFaceTable g_SelectedFaceTable;\r
-extern _QERShadersTable g_ShadersTable;\r
-extern _QERQglTable g_QglTable;\r
-extern _QERUITable g_MessageTable;\r
-extern _QEREntityTable g_EntityTable;\r
-\r
-\r
-#define MAX_ROUND_ERROR 0.05\r
-\r
-#include "gtkr_list.h"\r
-\r
-#endif\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#ifndef __STDAFX_BOBTOOLZ__
+#define __STDAFX_BOBTOOLZ__
+
+#define VC_EXTRALEAN
+
+#ifdef _WIN32
+#pragma warning(disable : 4786)
+#endif
+
+#define BOBTOOLZ_MINOR "bobtoolz"
+
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtk.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "time.h"
+
+#if defined (__linux__) || defined (__APPLE__)
+
+// Necessary for proper boolean type declaration
+#include "qertypes.h"
+
+#include <GL/glx.h>
+
+typedef void* HMODULE;
+typedef void* LPVOID;
+typedef char* LPCSTR;
+//typedef int bool;
+
+#define MB_OK 0x00000000L
+#define MB_OKCANCEL 0x00000001L
+#define MB_ABORTRETRYIGNORE 0x00000002L
+#define MB_YESNOCANCEL 0x00000003L
+#define MB_YESNO 0x00000004L
+#define MB_RETRYCANCEL 0x00000005L
+
+
+#define MB_ICONHAND 0x00000010L
+#define MB_ICONQUESTION 0x00000020L
+#define MB_ICONEXCLAMATION 0x00000030L
+#define MB_ICONASTERISK 0x00000040L
+
+#define MB_USERICON 0x00000080L
+#define MB_ICONWARNING MB_ICONEXCLAMATION
+#define MB_ICONERROR MB_ICONHAND
+#define MB_ICONINFORMATION MB_ICONASTERISK
+#define MB_ICONSTOP MB_ICONHAND
+
+#define MB_TYPEMASK 0x0000000FL
+#define MB_ICONMASK 0x000000F0L
+#define MB_DEFMASK 0x00000F00L
+#define MB_MODEMASK 0x00003000L
+#define MB_MISCMASK 0x0000C000L
+
+#define IDOK 1
+#define IDCANCEL 2
+#define IDABORT 3
+#define IDRETRY 4
+#define IDIGNORE 5
+#define IDYES 6
+#define IDNO 7
+
+#define WINAPI
+#define APIENTRY
+
+#ifndef GUID_DEFINED
+#define GUID_DEFINED
+typedef struct _GUID
+{
+ unsigned long Data1;
+ unsigned short Data2;
+ unsigned short Data3;
+ unsigned char Data4[8];
+} GUID;
+
+#define stricmp strcasecmp
+
+#endif
+
+#if defined(__cplusplus)
+#ifndef _REFGUID_DEFINED
+#define _REFGUID_DEFINED
+#define REFGUID const GUID &
+#endif // !_REFGUID_DEFINED
+#endif
+
+typedef struct tagRECT
+{
+ long left;
+ long top;
+ long right;
+ long bottom;
+} RECT, *PRECT, *LPRECT;
+
+typedef uint UINT;
+
+#endif // __linux__
+
+#include "synapse.h"
+#include "iplugin.h"
+#define USE_QERTABLE_DEFINE
+
+#include "missing.h" // temporary stuff, needs to be removed
+
+#include "str.h"
+#include "qertypes.h"
+#include "qerplugin.h"
+#include "idata.h"
+#include "ibrush.h"
+#include "iselectedface.h"
+#include "ishaders.h"
+#include "ibspfrontend.h"
+#include "iui.h"
+#include "igl.h"
+#include "itoolbar.h"
+#include "ientity.h"
+
+#include "mathlib.h"
+
+extern _QERFuncTable_1 g_FuncTable;
+extern _QERAppDataTable g_AppDataTable;
+extern _QERBrushTable g_BrushTable;
+extern _QERSelectedFaceTable g_SelectedFaceTable;
+extern _QERShadersTable g_ShadersTable;
+extern _QERQglTable g_QglTable;
+extern _QERUITable g_MessageTable;
+extern _QEREntityTable g_EntityTable;
+
+
+#define MAX_ROUND_ERROR 0.05
+
+#include "gtkr_list.h"
+
+#endif
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-// plugin.h : main header file for the PLUGIN DLL\r
-//\r
-\r
-#if !defined(AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)\r
-#define AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_\r
-\r
-#if _MSC_VER >= 1000\r
-#pragma once\r
-#endif // _MSC_VER >= 1000\r
-\r
-#ifndef __AFXWIN_H__\r
- #error include 'StdAfx.h' before including this file for PCH\r
-#endif\r
-\r
-#include "resource.h" // main symbols\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPluginApp\r
-// See plugin.cpp for the implementation of this class\r
-//\r
-\r
-class CPluginApp : public CWinApp\r
-{\r
-public:\r
- CPluginApp();\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CPluginApp)\r
- //}}AFX_VIRTUAL\r
-\r
- //{{AFX_MSG(CPluginApp)\r
- // NOTE - the ClassWizard will add and remove member functions here.\r
- // DO NOT EDIT what you see in these blocks of generated code !\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+// plugin.h : main header file for the PLUGIN DLL
+//
+
+#if !defined(AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
+#define AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+
+#ifndef __AFXWIN_H__
+ #error include 'StdAfx.h' before including this file for PCH
+#endif
+
+#include "resource.h" // main symbols
+
+/////////////////////////////////////////////////////////////////////////////
+// CPluginApp
+// See plugin.cpp for the implementation of this class
+//
+
+class CPluginApp : public CWinApp
+{
+public:
+ CPluginApp();
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CPluginApp)
+ //}}AFX_VIRTUAL
+
+ //{{AFX_MSG(CPluginApp)
+ // NOTE - the ClassWizard will add and remove member functions here.
+ // DO NOT EDIT what you see in these blocks of generated code !
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+
+/////////////////////////////////////////////////////////////////////////////
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_PLUGIN_H__3BA55F6A_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
-#define LUMP_ENTITIES 0\r
-#define LUMP_SHADERS 1\r
-#define LUMP_PLANES 2\r
-#define LUMP_NODES 3\r
-#define LUMP_LEAFS 4\r
-#define LUMP_LEAFSURFACES 5\r
-#define LUMP_LEAFBRUSHES 6\r
-#define LUMP_MODELS 7\r
-#define LUMP_BRUSHES 8\r
-#define LUMP_BRUSHSIDES 9\r
-#define LUMP_DRAWVERTS 10\r
-#define LUMP_DRAWINDEXES 11\r
-#define LUMP_FOGS 12\r
-#define LUMP_SURFACES 13\r
-#define LUMP_LIGHTMAPS 14\r
-#define LUMP_LIGHTGRID 15\r
-#define LUMP_VISIBILITY 16\r
-#define HEADER_LUMPS 17\r
-\r
-typedef struct {\r
- int fileofs, filelen;\r
-} lump_t;\r
-\r
-typedef struct {\r
- int ident;\r
- int version;\r
-\r
- lump_t lumps[HEADER_LUMPS];\r
-} dheader_t;\r
-\r
-typedef struct {\r
- float normal[3];\r
- float dist;\r
-} dplane_t;\r
-\r
-typedef struct {\r
- int planeNum;\r
- int children[2]; // negative numbers are -(leafs+1), not nodes\r
- int mins[3]; // for frustom culling\r
- int maxs[3];\r
-} dnode_t;\r
-\r
-typedef struct {\r
- int cluster; // -1 = opaque cluster (do I still store these?)\r
- int area;\r
-\r
- int mins[3]; // for frustum culling\r
- int maxs[3];\r
-\r
- int firstLeafSurface;\r
- int numLeafSurfaces;\r
-\r
- int firstLeafBrush;\r
- int numLeafBrushes;\r
-} dleaf_t;\r
-\r
-typedef struct {\r
- vec3_t xyz;\r
- float st[2];\r
- float lightmap[2];\r
- vec3_t normal;\r
- byte color[4];\r
-} qdrawVert_t;\r
-\r
-typedef struct {\r
- int shaderNum;\r
- int fogNum;\r
- int surfaceType;\r
-\r
- int firstVert;\r
- int numVerts;\r
-\r
- int firstIndex;\r
- int numIndexes;\r
-\r
- int lightmapNum;\r
- int lightmapX, lightmapY;\r
- int lightmapWidth, lightmapHeight;\r
-\r
- vec3_t lightmapOrigin;\r
- vec3_t lightmapVecs[3]; // for patches, [0] and [1] are lodbounds\r
-\r
- int patchWidth;\r
- int patchHeight;\r
-} dsurface_t;\r
-\r
-typedef struct {\r
- int planeNum; // positive plane side faces out of the leaf\r
- int shaderNum;\r
-} dbrushside_t;\r
-\r
-typedef struct {\r
- int firstSide;\r
- int numSides;\r
- int shaderNum; // the shader that determines the contents flags\r
-} dbrush_t;\r
-\r
-typedef enum {\r
- MST_BAD,\r
- MST_PLANAR,\r
- MST_PATCH,\r
- MST_TRIANGLE_SOUP,\r
- MST_FLARE\r
-} mapSurfaceType_t;\r
-\r
-#define MAX_MAP_VISIBILITY 0x200000\r
-#define MAX_MAP_NODES 0x20000\r
-#define MAX_MAP_PLANES 0x20000\r
-#define MAX_MAP_LEAFS 0x20000\r
-\r
-extern int numVisBytes;\r
-extern int numleafs;\r
-extern int numplanes;\r
-extern int numnodes;\r
-extern int numDrawVerts;\r
-extern int numDrawSurfaces;\r
-extern int numleafsurfaces;\r
-extern int numbrushes;\r
-extern int numbrushsides;\r
-extern int numleafbrushes;\r
-\r
-extern dnode_t *dnodes;\r
-extern dplane_t *dplanes;\r
-extern dleaf_t *dleafs;\r
-extern byte *visBytes;\r
-extern qdrawVert_t *drawVerts;\r
-extern dsurface_t *drawSurfaces;\r
-extern int *dleafsurfaces;\r
-extern dbrush_t *dbrushes;\r
-extern dbrushside_t *dbrushsides;\r
-extern int *dleafbrushes;\r
-\r
-qboolean LoadBSPFile( const char *filename );\r
-void FreeBSPData();\r
+#define LUMP_ENTITIES 0
+#define LUMP_SHADERS 1
+#define LUMP_PLANES 2
+#define LUMP_NODES 3
+#define LUMP_LEAFS 4
+#define LUMP_LEAFSURFACES 5
+#define LUMP_LEAFBRUSHES 6
+#define LUMP_MODELS 7
+#define LUMP_BRUSHES 8
+#define LUMP_BRUSHSIDES 9
+#define LUMP_DRAWVERTS 10
+#define LUMP_DRAWINDEXES 11
+#define LUMP_FOGS 12
+#define LUMP_SURFACES 13
+#define LUMP_LIGHTMAPS 14
+#define LUMP_LIGHTGRID 15
+#define LUMP_VISIBILITY 16
+#define HEADER_LUMPS 17
+
+typedef struct {
+ int fileofs, filelen;
+} lump_t;
+
+typedef struct {
+ int ident;
+ int version;
+
+ lump_t lumps[HEADER_LUMPS];
+} dheader_t;
+
+typedef struct {
+ float normal[3];
+ float dist;
+} dplane_t;
+
+typedef struct {
+ int planeNum;
+ int children[2]; // negative numbers are -(leafs+1), not nodes
+ int mins[3]; // for frustom culling
+ int maxs[3];
+} dnode_t;
+
+typedef struct {
+ int cluster; // -1 = opaque cluster (do I still store these?)
+ int area;
+
+ int mins[3]; // for frustum culling
+ int maxs[3];
+
+ int firstLeafSurface;
+ int numLeafSurfaces;
+
+ int firstLeafBrush;
+ int numLeafBrushes;
+} dleaf_t;
+
+typedef struct {
+ vec3_t xyz;
+ float st[2];
+ float lightmap[2];
+ vec3_t normal;
+ byte color[4];
+} qdrawVert_t;
+
+typedef struct {
+ int shaderNum;
+ int fogNum;
+ int surfaceType;
+
+ int firstVert;
+ int numVerts;
+
+ int firstIndex;
+ int numIndexes;
+
+ int lightmapNum;
+ int lightmapX, lightmapY;
+ int lightmapWidth, lightmapHeight;
+
+ vec3_t lightmapOrigin;
+ vec3_t lightmapVecs[3]; // for patches, [0] and [1] are lodbounds
+
+ int patchWidth;
+ int patchHeight;
+} dsurface_t;
+
+typedef struct {
+ int planeNum; // positive plane side faces out of the leaf
+ int shaderNum;
+} dbrushside_t;
+
+typedef struct {
+ int firstSide;
+ int numSides;
+ int shaderNum; // the shader that determines the contents flags
+} dbrush_t;
+
+typedef enum {
+ MST_BAD,
+ MST_PLANAR,
+ MST_PATCH,
+ MST_TRIANGLE_SOUP,
+ MST_FLARE
+} mapSurfaceType_t;
+
+#define MAX_MAP_VISIBILITY 0x200000
+#define MAX_MAP_NODES 0x20000
+#define MAX_MAP_PLANES 0x20000
+#define MAX_MAP_LEAFS 0x20000
+
+extern int numVisBytes;
+extern int numleafs;
+extern int numplanes;
+extern int numnodes;
+extern int numDrawVerts;
+extern int numDrawSurfaces;
+extern int numleafsurfaces;
+extern int numbrushes;
+extern int numbrushsides;
+extern int numleafbrushes;
+
+extern dnode_t *dnodes;
+extern dplane_t *dplanes;
+extern dleaf_t *dleafs;
+extern byte *visBytes;
+extern qdrawVert_t *drawVerts;
+extern dsurface_t *drawSurfaces;
+extern int *dleafsurfaces;
+extern dbrush_t *dbrushes;
+extern dbrushside_t *dbrushsides;
+extern int *dleafbrushes;
+
+qboolean LoadBSPFile( const char *filename );
+void FreeBSPData();
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-//{{NO_DEPENDENCIES}}\r
-// Microsoft Developer Studio generated include file.\r
-// Used by ctfresource_gtk.rc\r
-//\r
-\r
-// Next default values for new objects\r
-// \r
-#ifdef APSTUDIO_INVOKED\r
-#ifndef APSTUDIO_READONLY_SYMBOLS\r
-#define _APS_NEXT_RESOURCE_VALUE 101\r
-#define _APS_NEXT_COMMAND_VALUE 40001\r
-#define _APS_NEXT_CONTROL_VALUE 1000\r
-#define _APS_NEXT_SYMED_VALUE 101\r
-#endif\r
-#endif\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+//{{NO_DEPENDENCIES}}
+// Microsoft Developer Studio generated include file.
+// Used by ctfresource_gtk.rc
+//
+
+// Next default values for new objects
+//
+#ifdef APSTUDIO_INVOKED
+#ifndef APSTUDIO_READONLY_SYMBOLS
+#define _APS_NEXT_RESOURCE_VALUE 101
+#define _APS_NEXT_COMMAND_VALUE 40001
+#define _APS_NEXT_CONTROL_VALUE 1000
+#define _APS_NEXT_SYMED_VALUE 101
+#endif
+#endif
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)\r
-#define AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_\r
-\r
-#if _MSC_VER >= 1000\r
-#pragma once\r
-#endif // _MSC_VER >= 1000\r
-// AboutDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CAboutDialog dialog\r
-\r
-class CAboutDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CAboutDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CAboutDialog)\r
- enum { IDD = IDD_ABOUT };\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CAboutDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CAboutDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Developer Studio will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
+#define AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_
+
+#if _MSC_VER >= 1000
+#pragma once
+#endif // _MSC_VER >= 1000
+// AboutDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CAboutDialog dialog
+
+class CAboutDialog : public CDialog
+{
+// Construction
+public:
+ CAboutDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CAboutDialog)
+ enum { IDD = IDD_ABOUT };
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CAboutDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CAboutDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_ABOUTDIALOG_H__3BA55F71_1D27_11D3_BC7B_F7EFD9765E37__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)\r
-#define AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// AutoCaulkDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CAutoCaulkDialog dialog\r
-\r
-class CAutoCaulkDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CAutoCaulkDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CAutoCaulkDialog)\r
- enum { IDD = IDD_AUTOCAULK_DIALOG };\r
- CProgressCtrl m_prog2;\r
- CProgressCtrl m_prog1;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CAutoCaulkDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CAutoCaulkDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)
+#define AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// AutoCaulkDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CAutoCaulkDialog dialog
+
+class CAutoCaulkDialog : public CDialog
+{
+// Construction
+public:
+ CAutoCaulkDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CAutoCaulkDialog)
+ enum { IDD = IDD_AUTOCAULK_DIALOG };
+ CProgressCtrl m_prog2;
+ CProgressCtrl m_prog1;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CAutoCaulkDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CAutoCaulkDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_AUTOCAULKDIALOG_H__C2783D61_DDEB_11D4_ACF6_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// AutoCaulkStartDialog.h : header file\r
-//\r
-\r
-#define MODE_AC_NORMAL 0\r
-#define MODE_AC_BUILD_MINI_PRT 1\r
-#define MODE_AC_SUPER 2\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CAutoCaulkStartDialog dialog\r
-\r
-class CAutoCaulkStartDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CAutoCaulkStartDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CAutoCaulkStartDialog)\r
- enum { IDD = IDD_AUTOCAULKSTART_DIALOG };\r
- BOOL m_bAllowDestruction;\r
- CString m_Warning1;\r
- int m_nMode;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CAutoCaulkStartDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CAutoCaulkStartDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// AutoCaulkStartDialog.h : header file
+//
+
+#define MODE_AC_NORMAL 0
+#define MODE_AC_BUILD_MINI_PRT 1
+#define MODE_AC_SUPER 2
+
+/////////////////////////////////////////////////////////////////////////////
+// CAutoCaulkStartDialog dialog
+
+class CAutoCaulkStartDialog : public CDialog
+{
+// Construction
+public:
+ CAutoCaulkStartDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CAutoCaulkStartDialog)
+ enum { IDD = IDD_AUTOCAULKSTART_DIALOG };
+ BOOL m_bAllowDestruction;
+ CString m_Warning1;
+ int m_nMode;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CAutoCaulkStartDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CAutoCaulkStartDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_AUTOCAULKSTARTDIALOG_H__F3DE2E81_E73E_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)\r
-#define AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// BrushCheckDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CBrushCheckDialog dialog\r
-\r
-class CBrushCheckDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CBrushCheckDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CBrushCheckDialog)\r
- enum { IDD = IDD_BRUSHCHECKER_DIALOG };\r
- CProgressCtrl m_prog1;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CBrushCheckDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CBrushCheckDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)
+#define AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// BrushCheckDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CBrushCheckDialog dialog
+
+class CBrushCheckDialog : public CDialog
+{
+// Construction
+public:
+ CBrushCheckDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CBrushCheckDialog)
+ enum { IDD = IDD_BRUSHCHECKER_DIALOG };
+ CProgressCtrl m_prog1;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CBrushCheckDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CBrushCheckDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_BRUSHCHECKDIALOG_H__4BF2C701_D9EF_11D4_ACF6_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)\r
-#define AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// DoorDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CDoorDialog dialog\r
-\r
-class CDoorDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CDoorDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CDoorDialog)\r
- enum { IDD = IDD_DOOR_DIALOG };\r
- CString m_fbTextureName;\r
- BOOL m_bSclMainHor;\r
- BOOL m_bSclMainVert;\r
- BOOL m_bSclTrimHor;\r
- BOOL m_bSclTrimVert;\r
- CString m_trimTextureName;\r
- CString m_trimTexSetBox;\r
- CString m_mainTexSetBox;\r
- int m_doorDirection;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CDoorDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CDoorDialog)\r
- afx_msg void OnSetMaintexBtn();\r
- afx_msg void OnSetTrimtexBtn();\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)
+#define AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// DoorDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CDoorDialog dialog
+
+class CDoorDialog : public CDialog
+{
+// Construction
+public:
+ CDoorDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CDoorDialog)
+ enum { IDD = IDD_DOOR_DIALOG };
+ CString m_fbTextureName;
+ BOOL m_bSclMainHor;
+ BOOL m_bSclMainVert;
+ BOOL m_bSclTrimHor;
+ BOOL m_bSclTrimVert;
+ CString m_trimTextureName;
+ CString m_trimTexSetBox;
+ CString m_mainTexSetBox;
+ int m_doorDirection;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CDoorDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CDoorDialog)
+ afx_msg void OnSetMaintexBtn();
+ afx_msg void OnSetTrimtexBtn();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_DOORDIALOG_H__F36CBE01_D2C4_11D4_AE97_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)\r
-#define AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// IntersectDialog.h : header file\r
-//\r
-\r
-#define BRUSH_OPT_WHOLE_MAP 0\r
-#define BRUSH_OPT_SELECTED 1\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CIntersectDialog dialog\r
-\r
-class CIntersectDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CIntersectDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CIntersectDialog)\r
- enum { IDD = IDD_INTERSECT_DIALOG };\r
- int m_nBrushOptions;\r
- BOOL m_bUseDetail;\r
- BOOL m_bDuplicateOnly;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CIntersectDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CIntersectDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)
+#define AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// IntersectDialog.h : header file
+//
+
+#define BRUSH_OPT_WHOLE_MAP 0
+#define BRUSH_OPT_SELECTED 1
+
+/////////////////////////////////////////////////////////////////////////////
+// CIntersectDialog dialog
+
+class CIntersectDialog : public CDialog
+{
+// Construction
+public:
+ CIntersectDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CIntersectDialog)
+ enum { IDD = IDD_INTERSECT_DIALOG };
+ int m_nBrushOptions;
+ BOOL m_bUseDetail;
+ BOOL m_bDuplicateOnly;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CIntersectDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CIntersectDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_INTERSECTDIALOG_H__03507C01_D3B3_11D4_AE97_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)\r
-#define AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// IntersectInfoDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CIntersectInfoDialog dialog\r
-\r
-class CIntersectInfoDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CIntersectInfoDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CIntersectInfoDialog)\r
- enum { IDD = IDD_INTERSECT_INFO_DIALOG };\r
- CProgressCtrl m_prog1;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CIntersectInfoDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CIntersectInfoDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)
+#define AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// IntersectInfoDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CIntersectInfoDialog dialog
+
+class CIntersectInfoDialog : public CDialog
+{
+// Construction
+public:
+ CIntersectInfoDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CIntersectInfoDialog)
+ enum { IDD = IDD_INTERSECT_INFO_DIALOG };
+ CProgressCtrl m_prog1;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CIntersectInfoDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CIntersectInfoDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_INTERSECTINFODIALOG_H__62CDC8CD_D9D2_11D4_ACF6_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)\r
-#define AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// PolygonDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPolygonDialog dialog\r
-\r
-class CPolygonDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- BOOL GetChkBool(int nID);\r
- void EnableBorderEdit(BOOL bEnable);\r
- void EnableBordered(BOOL bEnable);\r
- CPolygonDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CPolygonDialog)\r
- enum { IDD = IDD_POLYGON_DIALOG };\r
- UINT m_nSideCount;\r
- BOOL m_bInverse;\r
- BOOL m_bBorder;\r
- UINT m_nBorderSize;\r
- BOOL m_bAlignTop;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CPolygonDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CPolygonDialog)\r
- virtual BOOL OnInitDialog();\r
- afx_msg void OnBorderChkClicked();\r
- afx_msg void OnInverseChkClickrd();\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)
+#define AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// PolygonDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CPolygonDialog dialog
+
+class CPolygonDialog : public CDialog
+{
+// Construction
+public:
+ BOOL GetChkBool(int nID);
+ void EnableBorderEdit(BOOL bEnable);
+ void EnableBordered(BOOL bEnable);
+ CPolygonDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CPolygonDialog)
+ enum { IDD = IDD_POLYGON_DIALOG };
+ UINT m_nSideCount;
+ BOOL m_bInverse;
+ BOOL m_bBorder;
+ UINT m_nBorderSize;
+ BOOL m_bAlignTop;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CPolygonDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CPolygonDialog)
+ virtual BOOL OnInitDialog();
+ afx_msg void OnBorderChkClicked();
+ afx_msg void OnInverseChkClickrd();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_POLYGONDIALOG_H__EF7FE400_628A_11D1_B66D_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)\r
-#define AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// StairDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CStairDialog dialog\r
-\r
-class CStairDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CStairDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CStairDialog)\r
- enum { IDD = IDD_STAIR_DIALOG };\r
- UINT m_nStairHeight;\r
- int m_StairDir;\r
- int m_StairStyle;\r
- CString m_riserTexture;\r
- BOOL m_bDetail;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CStairDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CStairDialog)\r
- afx_msg void OnStyleBobClicked();\r
- afx_msg void OnStyleOrigClicked();\r
- virtual BOOL OnInitDialog();\r
- afx_msg void OnStyleCornerClicked();\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-private:\r
- void EnableDetail(BOOL bEnable);\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)
+#define AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// StairDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CStairDialog dialog
+
+class CStairDialog : public CDialog
+{
+// Construction
+public:
+ CStairDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CStairDialog)
+ enum { IDD = IDD_STAIR_DIALOG };
+ UINT m_nStairHeight;
+ int m_StairDir;
+ int m_StairStyle;
+ CString m_riserTexture;
+ BOOL m_bDetail;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CStairDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CStairDialog)
+ afx_msg void OnStyleBobClicked();
+ afx_msg void OnStyleOrigClicked();
+ virtual BOOL OnInitDialog();
+ afx_msg void OnStyleCornerClicked();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+private:
+ void EnableDetail(BOOL bEnable);
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_STAIRDIALOG_H__942FFF20_5F9E_11D1_B66D_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// TextureResetDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CTextureResetDialog dialog\r
-\r
-class CTextureResetDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CTextureResetDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CTextureResetDialog)\r
- enum { IDD = IDD_TEXTURE_RESET_DIALOG };\r
- BOOL m_bAllTextures;\r
- CString m_TextureName;\r
- int m_nRotation;\r
- float m_fScaleHorizontal;\r
- float m_fScaleVertical;\r
- int m_nShiftHorizontal;\r
- int m_nShiftVertical;\r
- BOOL m_bOnlyTexture;\r
- CString m_NewTextureName;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CTextureResetDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CTextureResetDialog)\r
- // NOTE: the ClassWizard will add member functions here\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// TextureResetDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CTextureResetDialog dialog
+
+class CTextureResetDialog : public CDialog
+{
+// Construction
+public:
+ CTextureResetDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CTextureResetDialog)
+ enum { IDD = IDD_TEXTURE_RESET_DIALOG };
+ BOOL m_bAllTextures;
+ CString m_TextureName;
+ int m_nRotation;
+ float m_fScaleHorizontal;
+ float m_fScaleVertical;
+ int m_nShiftHorizontal;
+ int m_nShiftVertical;
+ BOOL m_bOnlyTexture;
+ CString m_NewTextureName;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CTextureResetDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CTextureResetDialog)
+ // NOTE: the ClassWizard will add member functions here
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_TEXTURERESETDIALOG_H__42D665C1_ED84_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-struct BuildStairsRS{\r
- char mainTexture[256];\r
- char riserTexture[256];\r
- int direction;\r
- int style;\r
- int stairHeight;\r
- qboolean bUseDetail;\r
-};\r
-\r
-struct ResetTextureRS {\r
- int bResetTextureName;\r
- char textureName[256];\r
- char newTextureName[256];\r
-\r
- int bResetScale[2];\r
- float fScale[2];\r
-\r
- int bResetShift[2];\r
- float fShift[2];\r
-\r
- int bResetRotation;\r
- int rotation;\r
-};\r
-\r
-struct TrainThingRS {\r
- float fRadiusX, fRadiusY;\r
- float fStartAngle, fEndAngle;\r
- int iNumPoints;\r
- float fStartHeight, fEndHeight;\r
-};\r
-\r
-struct IntersectRS{\r
- int nBrushOptions;\r
- qboolean bUseDetail;\r
- qboolean bDuplicateOnly;\r
-};\r
-\r
-struct PolygonRS{\r
- qboolean bUseBorder;\r
- qboolean bInverse;\r
- qboolean bAlignTop;\r
- int nSides;\r
- int nBorderWidth;\r
-};\r
-\r
-struct DoorRS{\r
- char mainTexture[256];\r
- char trimTexture[256];\r
- qboolean bScaleMainH;\r
- qboolean bScaleMainV;\r
- qboolean bScaleTrimH;\r
- qboolean bScaleTrimV;\r
- int nOrientation;\r
-};\r
-\r
-struct PathPlotterRS{\r
- int nPoints;\r
- float fMultiplier;\r
- float fGravity;\r
- qboolean bNoUpdate;\r
- qboolean bShowExtra;\r
-};\r
-\r
-struct TwinWidget{\r
- GtkWidget* one;\r
- GtkWidget* two;\r
-};\r
-\r
-int DoMessageBox(const char* lpText, const char* lpCaption, guint32 uType);\r
-int DoIntersectBox(IntersectRS* rs);\r
-int DoPolygonBox(PolygonRS* rs);\r
-int DoResetTextureBox (ResetTextureRS* rs);\r
-int DoBuildStairsBox(BuildStairsRS* rs);\r
-int DoDoorsBox(DoorRS* rs);\r
-int DoPathPlotterBox(PathPlotterRS* rs);\r
-int DoCTFColourChangeBox();\r
-int DoTrainThingBox (TrainThingRS* rs);\r
-\r
-//GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+struct BuildStairsRS{
+ char mainTexture[256];
+ char riserTexture[256];
+ int direction;
+ int style;
+ int stairHeight;
+ qboolean bUseDetail;
+};
+
+struct ResetTextureRS {
+ int bResetTextureName;
+ char textureName[256];
+ char newTextureName[256];
+
+ int bResetScale[2];
+ float fScale[2];
+
+ int bResetShift[2];
+ float fShift[2];
+
+ int bResetRotation;
+ int rotation;
+};
+
+struct TrainThingRS {
+ float fRadiusX, fRadiusY;
+ float fStartAngle, fEndAngle;
+ int iNumPoints;
+ float fStartHeight, fEndHeight;
+};
+
+struct IntersectRS{
+ int nBrushOptions;
+ qboolean bUseDetail;
+ qboolean bDuplicateOnly;
+};
+
+struct PolygonRS{
+ qboolean bUseBorder;
+ qboolean bInverse;
+ qboolean bAlignTop;
+ int nSides;
+ int nBorderWidth;
+};
+
+struct DoorRS{
+ char mainTexture[256];
+ char trimTexture[256];
+ qboolean bScaleMainH;
+ qboolean bScaleMainV;
+ qboolean bScaleTrimH;
+ qboolean bScaleTrimV;
+ int nOrientation;
+};
+
+struct PathPlotterRS{
+ int nPoints;
+ float fMultiplier;
+ float fGravity;
+ qboolean bNoUpdate;
+ qboolean bShowExtra;
+};
+
+struct TwinWidget{
+ GtkWidget* one;
+ GtkWidget* two;
+};
+
+int DoMessageBox(const char* lpText, const char* lpCaption, guint32 uType);
+int DoIntersectBox(IntersectRS* rs);
+int DoPolygonBox(PolygonRS* rs);
+int DoResetTextureBox (ResetTextureRS* rs);
+int DoBuildStairsBox(BuildStairsRS* rs);
+int DoDoorsBox(DoorRS* rs);
+int DoPathPlotterBox(PathPlotterRS* rs);
+int DoCTFColourChangeBox();
+int DoTrainThingBox (TrainThingRS* rs);
+
+//GtkWidget* GetProgressWindow(char* title, GtkProgressBar* feedback);
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#if !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)\r
-#define AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_\r
-\r
-#if _MSC_VER > 1000\r
-#pragma once\r
-#endif // _MSC_VER > 1000\r
-// PathPlotterDialog.h : header file\r
-//\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPathPlotterDialog dialog\r
-\r
-class CPathPlotterDialog : public CDialog\r
-{\r
-// Construction\r
-public:\r
- CPathPlotterDialog(CWnd* pParent = NULL); // standard constructor\r
-\r
-// Dialog Data\r
- //{{AFX_DATA(CPathPlotterDialog)\r
- enum { IDD = IDD_PATHPLOTTER_DIALOG };\r
- float m_fGravity;\r
- float m_fMultiplier;\r
- BOOL m_bNoUpdate;\r
- int m_nPoints;\r
- BOOL m_bShowExtra;\r
- //}}AFX_DATA\r
-\r
-\r
-// Overrides\r
- // ClassWizard generated virtual function overrides\r
- //{{AFX_VIRTUAL(CPathPlotterDialog)\r
- protected:\r
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support\r
- //}}AFX_VIRTUAL\r
-\r
-// Implementation\r
-protected:\r
-\r
- // Generated message map functions\r
- //{{AFX_MSG(CPathPlotterDialog)\r
- afx_msg void OnYes();\r
- afx_msg void OnNo();\r
- //}}AFX_MSG\r
- DECLARE_MESSAGE_MAP()\r
-};\r
-\r
-//{{AFX_INSERT_LOCATION}}\r
-// Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
-\r
-#endif // !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)\r
+/*
+BobToolz plugin for GtkRadiant
+Copyright (C) 2001 Gordon Biggans
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or (at your option) any later version.
+
+This library 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
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+#if !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)
+#define AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_
+
+#if _MSC_VER > 1000
+#pragma once
+#endif // _MSC_VER > 1000
+// PathPlotterDialog.h : header file
+//
+
+/////////////////////////////////////////////////////////////////////////////
+// CPathPlotterDialog dialog
+
+class CPathPlotterDialog : public CDialog
+{
+// Construction
+public:
+ CPathPlotterDialog(CWnd* pParent = NULL); // standard constructor
+
+// Dialog Data
+ //{{AFX_DATA(CPathPlotterDialog)
+ enum { IDD = IDD_PATHPLOTTER_DIALOG };
+ float m_fGravity;
+ float m_fMultiplier;
+ BOOL m_bNoUpdate;
+ int m_nPoints;
+ BOOL m_bShowExtra;
+ //}}AFX_DATA
+
+
+// Overrides
+ // ClassWizard generated virtual function overrides
+ //{{AFX_VIRTUAL(CPathPlotterDialog)
+ protected:
+ virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
+ //}}AFX_VIRTUAL
+
+// Implementation
+protected:
+
+ // Generated message map functions
+ //{{AFX_MSG(CPathPlotterDialog)
+ afx_msg void OnYes();
+ afx_msg void OnNo();
+ //}}AFX_MSG
+ DECLARE_MESSAGE_MAP()
+};
+
+//{{AFX_INSERT_LOCATION}}
+// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
+
+#endif // !defined(AFX_PATHPLOTTERDIALOG_H__A0516221_F19B_11D4_ACF7_004095A18133__INCLUDED_)
-/*\r
-BobToolz plugin for GtkRadiant\r
-Copyright (C) 2001 Gordon Biggans\r
-\r
-This library is free software; you can redistribute it and/or\r
-modify it under the terms of the GNU Lesser General Public\r
-License as published by the Free Software Foundation; either\r
-version 2.1 of the License, or (at your option) any later version.\r
-\r
-This library 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 GNU\r
-Lesser General Public License for more details.\r
-\r
-You should have received a copy of the GNU Lesser General Public\r
-License along with this library; if not, write to the Free Software\r
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\r
-*/\r
-\r
-#include "DBobView.h"\r
-#include "DVisDrawer.h"\r
-#include "DTrainDrawer.h"\r
-#include "DTreePlanter.h"\r
-\r
-extern DBobView* g_PathView;\r
-extern DVisDrawer* g_VisView;\r
-extern DTrainDrawer* g_TrainView;\r
-extern DTreePlanter* g_TreePlanter;\r
-\r
-// intersect stuff\r
-#define BRUSH_OPT_WHOLE_MAP 0\r
-#define BRUSH_OPT_SELECTED 1\r
-\r
-// defines for stairs\r
-#define MOVE_NORTH 0\r
-#define MOVE_SOUTH 1\r
-#define MOVE_EAST 2\r
-#define MOVE_WEST 3\r
-\r
-#define STYLE_ORIGINAL 0\r
-#define STYLE_BOB 1\r
-#define STYLE_CORNER 2\r
-\r
-// defines for doors\r
-#define DIRECTION_NS 0\r
-#define DIRECTION_EW 1\r
-\r
-// help\r
-void LoadLists();\r
-\r
-\r
-// djbob\r
-void DoIntersect( void );\r
-void DoPolygonsTB( void );\r
-void DoPolygons(vec3_t vMin, vec3_t vMax);\r
-void DoFixBrushes( void );\r
-void DoResetTextures( void );\r
-void DoBuildStairs(vec3_t vMin, vec3_t vMax);\r
-void DoBuildDoors(vec3_t vMin, vec3_t vMax);\r
-void DoPathPlotter( void );\r
-void DoPitBuilder(vec3_t vMin, vec3_t vMax);\r
-void DoCTFColourChanger( void );\r
-void DoMergePatches( void );\r<