Line | |
---|
1 | #include "LODInfo.h"
|
---|
2 | #include "Vector3.h"
|
---|
3 | #include "Shape.h"
|
---|
4 | #include "Geometry.h"
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 | namespace CHCDemoEngine
|
---|
9 | {
|
---|
10 |
|
---|
11 | int LODLevel::sFrameId = 0;
|
---|
12 | Vector3 LODLevel::sViewPoint(0.0f, 0.0f, 0.0f);
|
---|
13 |
|
---|
14 |
|
---|
15 | void LODLevel::InitFrame(const Vector3 &viewPoint)
|
---|
16 | {
|
---|
17 | sViewPoint = viewPoint;
|
---|
18 | ++ sFrameId;
|
---|
19 | }
|
---|
20 |
|
---|
21 |
|
---|
22 | void LODLevel::AddShape(Shape *shape)
|
---|
23 | {
|
---|
24 | mShapes.push_back(shape);
|
---|
25 | mNumTriangles += shape->GetGeometry()->GetNumTriangles();
|
---|
26 | }
|
---|
27 |
|
---|
28 |
|
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.