]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - include/cullable.h
Merge branch 'q3map2help' into 'master'
[xonotic/netradiant.git] / include / cullable.h
index 8e3c71bcaeddee0b6dd10382eb29ccccea134b00..299af2e214541c0a5eb30ed02cbebf65102e096a 100644 (file)
@@ -1,25 +1,25 @@
 /*
-Copyright (C) 2001-2006, William Joseph.
-All Rights Reserved.
+   Copyright (C) 2001-2006, William Joseph.
+   All Rights Reserved.
 
-This file is part of GtkRadiant.
+   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 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.
+   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
-*/
+   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
+ */
 
-#if !defined(INCLUDED_CULLABLE_H)
+#if !defined( INCLUDED_CULLABLE_H )
 #define INCLUDED_CULLABLE_H
 
 #include "generic/constant.h"
@@ -39,32 +39,32 @@ class VolumeTest
 {
 public:
 
-  /// \brief Returns true if \p point intersects volume.
-  virtual bool TestPoint(const Vector3& point) const = 0;
-  /// \brief Returns true if \p segment intersects volume.
-  virtual bool TestLine(const Segment& segment) const = 0;
-  /// \brief Returns true if \p plane faces towards volume.
-  virtual bool TestPlane(const Plane3& plane) const = 0;
-  /// \brief Returns true if \p plane transformed by \p localToWorld faces the viewer.
-  virtual bool TestPlane(const Plane3& plane, const Matrix4& localToWorld) const = 0;
-  /// \brief Returns the intersection of \p aabb and volume.
-  virtual VolumeIntersectionValue TestAABB(const AABB& aabb) const = 0;
-  /// \brief Returns the intersection of \p aabb transformed by \p localToWorld and volume.
-  virtual VolumeIntersectionValue TestAABB(const AABB& aabb, const Matrix4& localToWorld) const = 0;
-
-  virtual bool fill() const = 0;
-
-  virtual const Matrix4& GetViewport() const = 0;
-  virtual const Matrix4& GetProjection() const = 0;
-  virtual const Matrix4& GetModelview() const = 0;
+/// \brief Returns true if \p point intersects volume.
+virtual bool TestPoint( const Vector3& point ) const = 0;
+/// \brief Returns true if \p segment intersects volume.
+virtual bool TestLine( const Segment& segment ) const = 0;
+/// \brief Returns true if \p plane faces towards volume.
+virtual bool TestPlane( const Plane3& plane ) const = 0;
+/// \brief Returns true if \p plane transformed by \p localToWorld faces the viewer.
+virtual bool TestPlane( const Plane3& plane, const Matrix4& localToWorld ) const = 0;
+/// \brief Returns the intersection of \p aabb and volume.
+virtual VolumeIntersectionValue TestAABB( const AABB& aabb ) const = 0;
+/// \brief Returns the intersection of \p aabb transformed by \p localToWorld and volume.
+virtual VolumeIntersectionValue TestAABB( const AABB& aabb, const Matrix4& localToWorld ) const = 0;
+
+virtual bool fill() const = 0;
+
+virtual const Matrix4& GetViewport() const = 0;
+virtual const Matrix4& GetProjection() const = 0;
+virtual const Matrix4& GetModelview() const = 0;
 };
 
 class Cullable
 {
 public:
-  STRING_CONSTANT(Name, "Cullable");
+STRING_CONSTANT( Name, "Cullable" );
 
-  virtual VolumeIntersectionValue intersectVolume(const VolumeTest& test, const Matrix4& localToWorld) const = 0;
+virtual VolumeIntersectionValue intersectVolume( const VolumeTest& test, const Matrix4& localToWorld ) const = 0;
 };