Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | /**
|
---|
4 | @brief Base abstract class __declspec( dllexport ) for an elementary renderable.
|
---|
5 | */
|
---|
6 | class __declspec( dllexport ) ElementaryRenderable
|
---|
7 | {
|
---|
8 | public:
|
---|
9 |
|
---|
10 | /**
|
---|
11 | @brief Shows or hides the renderable.
|
---|
12 |
|
---|
13 | @param visible visibility
|
---|
14 | */
|
---|
15 | virtual void setVisible(bool visible) = 0;
|
---|
16 | /**
|
---|
17 | @brief Sets the rendering group this renderable belongs to.
|
---|
18 |
|
---|
19 | Rendering groups are to distinguish groups of rendering types
|
---|
20 | (eg.: caustic casters, caustic receivers, shadow casters) if needed.
|
---|
21 | Each group has a unique ID.
|
---|
22 |
|
---|
23 | @param groupID the ID of the group to use
|
---|
24 | */
|
---|
25 | virtual void setRenderGroup (unsigned char groupID) = 0;
|
---|
26 | /**
|
---|
27 | @brief Retrieves if the renderable is hided or shown.
|
---|
28 | */
|
---|
29 | virtual bool isVisible() = 0;
|
---|
30 | /**
|
---|
31 | @brief Updates bounding volumes.
|
---|
32 | */
|
---|
33 | virtual void updateBounds() = 0;
|
---|
34 | };
|
---|
Note: See
TracBrowser
for help on using the repository browser.