CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

bugplug.h

00001 /*
00002     Copyright (C) 2002 by Jorrit Tyberghein
00003 
00004     This library is free software; you can redistribute it and/or
00005     modify it under the terms of the GNU Library General Public
00006     License as published by the Free Software Foundation; either
00007     version 2 of the License, or (at your option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012     Library General Public License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public
00015     License along with this library; if not, write to the Free
00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00019 #ifndef __CS_IVARIA_BUGPLUG_H__
00020 #define __CS_IVARIA_BUGPLUG_H__
00021 
00022 #include "csutil/scf.h"
00023 
00024 class csBox3;
00025 class csVector2;
00026 class csVector3;
00027 class csReversibleTransform;
00028 struct iMeshObject;
00029 struct iBugPlug;
00030 struct iGraphics3D;
00031 
00032 SCF_VERSION (iBugPlugRenderObject, 0, 0, 1);
00033 
00039 struct iBugPlugRenderObject : public iBase
00040 {
00042   virtual void Render (iGraphics3D* g3d, iBugPlug* bugplug) = 0;
00043 };
00044 
00045 SCF_VERSION (iBugPlug, 0, 0, 3);
00046 
00051 struct iBugPlug : public iBase
00052 {
00053   //=========================================================================
00054 
00062   virtual void SetupDebugSector () = 0;
00063 
00070   virtual void DebugSectorBox (const csBox3& box, float r, float g, float b,
00071         const char* name = 0, iMeshObject* mesh = 0) = 0;
00072 
00077   virtual void DebugSectorTriangle (const csVector3& s1, const csVector3& s2,
00078         const csVector3& s3, float r, float g, float b) = 0;
00079 
00084   virtual void SwitchDebugSector (const csReversibleTransform& trans) = 0;
00085 
00089   virtual bool CheckDebugSector () const = 0;
00090 
00091   //=========================================================================
00092 
00098   virtual void SetupDebugView () = 0;
00099 
00103   virtual int DebugViewPoint (const csVector2& point) = 0;
00104 
00108   virtual void DebugViewLine (int i1, int i2) = 0;
00109 
00113   virtual void DebugViewBox (int i1, int i2) = 0;
00114 
00118   virtual int DebugViewPointCount () const = 0;
00119 
00123   virtual const csVector2& DebugViewGetPoint (int i) const = 0;
00124 
00128   virtual int DebugViewLineCount () const = 0;
00129 
00133   virtual void DebugViewGetLine (int i, int& i1, int& i2) const = 0;
00134 
00138   virtual int DebugViewBoxCount () const = 0;
00139 
00143   virtual void DebugViewGetBox (int i, int& i1, int& i2) const = 0;
00144 
00149   virtual void DebugViewRenderObject (iBugPlugRenderObject* obj) = 0;
00150 
00155   virtual void DebugViewClearScreen (bool cs) = 0;
00156 
00160   virtual void SwitchDebugView () = 0;
00161 
00165   virtual bool CheckDebugView () const = 0;
00166 
00167   //=========================================================================
00168 
00176   virtual void AddCounter (const char* countername, int amount = 1) = 0;
00177 
00186   virtual void AddCounterEnum (const char* countername, int enumval,
00187         int amount = 1) = 0;
00188 
00194   virtual void ResetCounter (const char* countername, int value = 0) = 0;
00195 
00200   virtual void RemoveCounter (const char* countername) = 0;
00201 
00202   //=========================================================================
00203 };
00204 
00205 #endif // __CS_IVARIA_BUGPLUG_H__
00206 

Generated for Crystal Space by doxygen 1.3.9.1