-
Notifications
You must be signed in to change notification settings - Fork 2
/
Brush.h
49 lines (41 loc) · 1.14 KB
/
Brush.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//-----------------------------------------------------------------------------
// File: Brush.h
//
// Desc:
//
// Copyright (c) 2002 Dan
//-----------------------------------------------------------------------------
#ifndef _BRUSH_H_
#define _BRUSH_H_
//-----------------------------------------------------------------------------
// Includes
#include "Polygon.h"
#include "enum.h"
#include "Face.h"
//-----------------------------------------------------------------------------
class CBrush : public CPolygon
{
public:
CBrush();
virtual ~CBrush();
bool SetType( const BRUSHTYPE type, CFace* pF = NULL );
CPolygon* Forge();
void Render();
virtual bool Save( const char* File, ofstream out );
virtual bool Open( const char* File, ifstream in );
bool RenderSelected();
void SetBrushOffset( const VECT v ) { m_vPos = v; }
bool BrushRebuild();
private:
BRUSHTYPE m_eBrushType;
bool NewCube();
bool NewSheet();
bool NewStairs();
bool NewSpiralStairs();
bool NewCylinder();
bool NewCircle();
bool NewCustomBrush( CFace* pF );
GLUquadricObj* m_pQuadricObj;
VECT m_vPos;
};
#endif