Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

maths
Class CBrush

   in Brush.h
   in Brush.cpp

class CBrush

Class CBrush: Represents a convex object, supports some CSG operations.


Inner Classes, Typedefs, and Enums
typedef CBrush::FaceIndices
          
struct CBrush::Helper
          
typedef CBrush::Vertices
          
 
Field Summary
private CBrush::FaceIndices m_Faces
          
private CBrush::Vertices m_Vertices
          
private static const uint no_vertex
          
 
Constructor Summary
CBrush()
          
CBrush( const CBound& bounds )
          Calculate bounds of this brush
 
Method Summary
 void Bounds( CBound& result ) const
          Cut the brush according to a given plane
 void Intersect( const CFrustum& frustum, CBrush& result ) const
          Dump the faces to OpenGL
 bool IsEmpty() const
          IsEmpty: Returns whether the brush is empty.
 void Render() const
          Render: Renders the brush as OpenGL polygons.
 void Slice( const CPlane& plane, CBrush& result ) const
          Intersect with frustum by repeated slicing
 

Field Detail

m_Faces

private CBrush::FaceIndices m_Faces;

m_Vertices

private CBrush::Vertices m_Vertices;

no_vertex

private static const uint no_vertex;


Constructor Detail

CBrush

public CBrush();

CBrush

public CBrush( const CBound& bounds );
Calculate bounds of this brush


Method Detail

Bounds

public void Bounds( CBound& result ) const;
Cut the brush according to a given plane

Intersect

public void Intersect( const CFrustum& frustum, CBrush& result ) const;
Dump the faces to OpenGL

IsEmpty

public bool IsEmpty() const;
IsEmpty: Returns whether the brush is empty.
Returns:
@c true if the brush is empty, @c false otherwise

Render

public void Render() const;
Render: Renders the brush as OpenGL polygons.

Slice

public void Slice( const CPlane& plane, CBrush& result ) const;
Intersect with frustum by repeated slicing

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD