|
csview.h00001 /* 00002 CrystalSpace 3D renderer view 00003 Copyright (C) 1998-2001 by Jorrit Tyberghein 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License as published by the Free Software Foundation; either 00008 version 2 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public 00016 License along with this library; if not, write to the Free 00017 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00018 */ 00019 00020 #ifndef __CS_VIEW_H__ 00021 #define __CS_VIEW_H__ 00022 00023 #include "ivaria/view.h" 00024 00025 class csPoly2D; 00026 class csBox2; 00027 00032 class csView : public iView 00033 { 00034 private: 00036 iEngine* Engine; 00038 iGraphics3D* G3D; 00040 int OldWidth, OldHeight; 00041 00043 iCamera* Camera; 00044 00046 csBox2* RectView; 00048 csPoly2D* PolyView; 00050 iClipper2D* Clipper; 00051 00053 void UpdateView (); 00054 00055 public: 00057 csView (iEngine *iEngine, iGraphics3D* ig3d); 00059 virtual ~csView (); 00060 00062 virtual iEngine* GetEngine (); 00064 virtual void SetEngine (iEngine* e); 00065 00067 virtual iCamera* GetCamera (); 00069 virtual void SetCamera (iCamera* c); 00070 00072 virtual iGraphics3D* GetContext (); 00074 virtual void SetContext (iGraphics3D *ig3d); 00075 00077 virtual void SetRectangle (int x, int y, int w, int h); 00079 virtual void ClearView (); 00081 virtual void AddViewVertex (int x, int y); 00083 virtual void RestrictClipperToScreen (); 00084 00086 virtual void UpdateClipper(); 00088 virtual iClipper2D* GetClipper (); 00090 virtual void Draw (); 00091 00092 SCF_DECLARE_IBASE; 00093 }; 00094 00095 #endif // __CS_VIEW_H__ Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000 |