| ## Public API Reference

- Main Page
- Classes
- Files

# propclass/camera.h

    00001 /*
    00002     Crystal Space Entity Layer
    00003     Copyright (C) 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    00018 */
    00019
    00020 #ifndef __CEL_PF_CAMERA__
    00021 #define __CEL_PF_CAMERA__
    00022
    00023 #include "cstypes.h"
    00024 #include "csutil/scf.h"
    00025
    00026 struct iCamera;
    00027 struct iView;
    00028 struct iPcRegion;
    00029 struct iPcZoneManager;
    00030
    00031 SCF_VERSION (iPcCamera, 0, 0, 3);
    00032
    00036 struct iPcCamera : public iBase
    00037 {
    00044   virtual bool SetRegion (iPcRegion* region, bool point = true,
    00045       const char* name = 0) = 0;
    00046
    00054   virtual bool SetZoneManager (iPcZoneManager* zonemgr, bool point,
    00055       const char* regionname, const char* name = 0) = 0;
    00056
    00064   virtual bool SetZoneManager (const char* entityname, bool point,
    00065       const char* regionname, const char* name = 0) = 0;
    00066
    00076   virtual void SetRectangle (int x, int y, int w, int h) = 0;
    00077
    00081   virtual iCamera* GetCamera () const = 0;
    00082
    00086   virtual iView* GetView () const = 0;
    00087
    00094   virtual void SetClearZBuffer (bool flag) = 0;
    00095
    00099   virtual bool GetClearZBuffer () const = 0;
    00100
    00107   virtual void SetClearScreen (bool flag) = 0;
    00108
    00112   virtual bool GetClearScreen () const = 0;
    00113
    00117   virtual void DisableDistanceClipping () = 0;
    00118
    00126   virtual void EnableFixedDistanceClipping (float dist) = 0;
    00127
    00138   virtual void EnableAdaptiveDistanceClipping (float min_fps,
    00139         float max_fps, float min_dist) = 0;
    00140
    00144   virtual bool UseDistanceClipping () const = 0;
    00145
    00149   virtual bool UseFixedDistanceClipping () const = 0;
    00150
    00154   virtual float GetFixedDistance () const = 0;
    00155
    00159   virtual float GetAdaptiveMinFPS () const = 0;
    00160
    00164   virtual float GetAdaptiveMaxFPS () const = 0;
    00165
    00169   virtual float GetAdaptiveMinDistance () const = 0;
    00170
    00177   virtual void SetAutoDraw (bool auto_draw) = 0;
    00178
    00182   virtual void Draw () = 0;
    00183
    00188   virtual void UpdateCamera () = 0;
    00189
    00193   virtual int GetDrawFlags () = 0;
    00194 };
    00195
    00196 #endif // __CEL_PF_CAMERA__
    00197