Revision 138,
1.8 KB
checked in by hidalgo, 19 years ago
(diff) |
Uploaded WP4 Dummy code(Geometry)
|
Line | |
---|
1 | #include "GeoBase.h"
|
---|
2 | #include <Ogre.h>
|
---|
3 |
|
---|
4 | namespace Geometry
|
---|
5 | {
|
---|
6 | /// LodStripsLibrary interface class.
|
---|
7 | /** This module contains functions that handle the levels of detail of the input multiresolution objects made of polygonal meshes. For any given resolution and object, this module returns a set of triangle strips representing the object at that resolution, that is, at the level of detail requested. These models use triangle strips to reduce storage usage and to speed up realistic rendering.
|
---|
8 | \n\n
|
---|
9 |
|
---|
10 | Inputs:\n
|
---|
11 | - The module receives a file describing a multiresolution object.
|
---|
12 | .
|
---|
13 |
|
---|
14 | Outputs:\n
|
---|
15 | - The module returns a strip set that represents the level of detail requested.
|
---|
16 | .
|
---|
17 |
|
---|
18 | */
|
---|
19 | class LodStripsLibrary: public Ogre::Renderable,Ogre::MovableObject
|
---|
20 | {
|
---|
21 | public:
|
---|
22 | /// Constructor, receives as a parameter the name of the file including the multiresolution object.
|
---|
23 | LodStripsLibrary (std::string);
|
---|
24 |
|
---|
25 | /// Destructor.
|
---|
26 | ~LodStripsLibrary (void);
|
---|
27 |
|
---|
28 | /// Copy constructor
|
---|
29 | //LodStripsLibrary(const LodStripsLibrary&);
|
---|
30 |
|
---|
31 | /// Assignment operator
|
---|
32 | //LodStripsLibrary& operator =(const LodStripsLibrary&);
|
---|
33 |
|
---|
34 | /// Returns the highest LOD.
|
---|
35 | uint32 MaxLod();
|
---|
36 |
|
---|
37 | /// Returns the lowest LOD.
|
---|
38 | uint32 MinLod();
|
---|
39 |
|
---|
40 | /// Returns de current LOD and changes to the specified LOD.
|
---|
41 | uint32 GoToLod(uint32);
|
---|
42 |
|
---|
43 | /// Establishes the new LOD range.
|
---|
44 | /// Only the LODs in that range are stored and used.
|
---|
45 | void TrimByLod(uint32, uint32);
|
---|
46 |
|
---|
47 | /// Returns the number of triangles of the highest LOD.
|
---|
48 | uint32 MaxFaces();
|
---|
49 |
|
---|
50 | /// Returns the number of triangles of the lowest LOD.
|
---|
51 | uint32 MinFaces();
|
---|
52 |
|
---|
53 | /// Returns the number of vertices of the highest LOD.
|
---|
54 | uint32 MaxVertices();
|
---|
55 |
|
---|
56 | /// Returns the number of vertices of the lowest LOD.
|
---|
57 | uint32 MinVertices();
|
---|
58 |
|
---|
59 |
|
---|
60 | };
|
---|
61 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.