X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=contrib%2Fbobtoolz%2FDPlane.h;h=62c9edbf6d7cb9d2703cb90246c3bab332484aed;hp=88a33584622747152ebee554a882ebc10f36f4b7;hb=9dfae1c9b270ee369c6362903a9205b30751b95f;hpb=0a6d5683b0cfa1a0bd7ef64bada105dbe4ddd6e1 diff --git a/contrib/bobtoolz/DPlane.h b/contrib/bobtoolz/DPlane.h index 88a33584..62c9edbf 100644 --- a/contrib/bobtoolz/DPlane.h +++ b/contrib/bobtoolz/DPlane.h @@ -30,6 +30,7 @@ #include "mathlib.h" class Brush; + class DPoint; #define FACE_DETAIL 0x8000000 @@ -40,34 +41,41 @@ class DPoint; class DWinding; -class DPlane -{ +class DPlane { public: -DPlane( const vec3_t va, const vec3_t vb, const vec3_t vc, const char* textureName, bool bDetail ); -void ScaleTexture(); -DWinding* BaseWindingForPlane(); + DPlane(const vec3_t va, const vec3_t vb, const vec3_t vc, const char *textureName, bool bDetail); + + void ScaleTexture(); + + DWinding *BaseWindingForPlane(); + + void Rebuild(); + + bool AddToBrush(scene::Node &brush); + + bool operator!=(DPlane &other); + + bool operator==(DPlane &other); + + bool IsRedundant(std::list &pointList); -void Rebuild(); + bool PlaneIntersection(DPlane *pl1, DPlane *pl2, vec3_t out); -bool AddToBrush( scene::Node& brush ); -bool operator !=( DPlane& other ); -bool operator ==( DPlane& other ); + vec_t DistanceToPoint(vec3_t pnt); -bool IsRedundant( std::list& pointList ); -bool PlaneIntersection( DPlane* pl1, DPlane* pl2, vec3_t out ); + DPlane(const vec3_t va, const vec3_t vb, const vec3_t vc, const _QERFaceData *texData); -vec_t DistanceToPoint( vec3_t pnt ); + DPlane() + {} -DPlane( const vec3_t va, const vec3_t vb, const vec3_t vc, const _QERFaceData* texData ); -DPlane() { } -virtual ~DPlane(); + virtual ~DPlane(); -bool m_bChkOk; -_QERFaceData texInfo; -CopiedString m_shader; -vec3_t points[3]; // djbob:do we really need these any more? -vec3_t normal; -float _d; + bool m_bChkOk; + _QERFaceData texInfo; + CopiedString m_shader; + vec3_t points[3]; // djbob:do we really need these any more? + vec3_t normal; + float _d; }; //typedef CList DPlaneList;