source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/LODInfo.cpp @ 2848

Revision 2848, 447 bytes checked in by mattausch, 16 years ago (diff)
Line 
1#include "LODInfo.h"
2#include "Vector3.h"
3#include "Shape.h"
4#include "Geometry.h"
5
6
7
8namespace CHCDemoEngine
9{
10
11int LODLevel::sFrameId = 0;
12Vector3 LODLevel::sViewPoint(0.0f, 0.0f, 0.0f);
13
14
15void LODLevel::InitFrame(const Vector3 &viewPoint)
16{
17        sViewPoint = viewPoint;
18        ++ sFrameId;
19}
20
21
22void 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.