Revision 59,
942 bytes
checked in by mattausch, 19 years ago
(diff) |
completely changed file structure plus software design
|
Rev | Line | |
---|
[59] | 1 | #ifndef _VisibilityInfo_H__
|
---|
| 2 | #define _VisibilityInfo_H__
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 |
|
---|
| 6 | /** Class storing the visibility information of a scene node.
|
---|
| 7 | */
|
---|
| 8 | class NodeVisibilityInfo {
|
---|
| 9 | /** pointer to the scene node */
|
---|
| 10 | SceneNode *mNode;
|
---|
| 11 | /** node visibility can either be a number of visible pixels or relative
|
---|
| 12 | number of visible pixels (if the hardware queries will provide the
|
---|
| 13 | total number of ratsterized pixels */
|
---|
| 14 | float mVisibility;
|
---|
| 15 | };
|
---|
| 16 |
|
---|
| 17 |
|
---|
| 18 | /** Class storing the visibility information of a mesh.
|
---|
| 19 | */
|
---|
| 20 | class MeshVisibilityInfo {
|
---|
| 21 | /** pointer to the scene node */
|
---|
| 22 | Geometry *mGeometry;
|
---|
| 23 | /** node visibility can either be a number of visible pixels or relative
|
---|
| 24 | number of visible pixels (if the hardware queries will provide the
|
---|
| 25 | total number of ratsterized pixels */
|
---|
| 26 | float mVisibility;
|
---|
| 27 | };
|
---|
| 28 |
|
---|
| 29 | /** Default container type for visibility infos */
|
---|
| 30 | temlate <typename T>
|
---|
| 31 | typedef vector<T> VisibilityContainer<T>;
|
---|
| 32 |
|
---|
| 33 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.