forked from TrenchBroom/TrenchBroom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRingFigure.h
51 lines (40 loc) · 1.69 KB
/
RingFigure.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
50
51
/*
Copyright (C) 2010-2012 Kristian Duske
This file is part of TrenchBroom.
TrenchBroom 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 3 of the License, or
(at your option) any later version.
TrenchBroom 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 TrenchBroom. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __TrenchBroom__RingFigure__
#define __TrenchBroom__RingFigure__
#include "Renderer/Figure.h"
#include "Utility/VecMath.h"
using namespace TrenchBroom::VecMath;
namespace TrenchBroom {
namespace Renderer {
class VertexArray;
class RingFigure : public Figure {
private:
Axis::Type m_normal;
float m_startAngle;
float m_angleLength;
float m_innerRadius;
float m_outerRadius;
unsigned int m_segments;
VertexArray* m_vertexArray;
public:
RingFigure(Axis::Type normal, float startAngle, float angleLength, float radius, float thickness, unsigned int segments);
RingFigure(Axis::Type normal, const Vec3f& startAxis, const Vec3f& endAxis, float radius, float thickness, unsigned int segments);
~RingFigure();
void render(Vbo& vbo, RenderContext& context);
};
}
}
#endif /* defined(__TrenchBroom__RingFigure__) */