Defines a brush to clear the background of camera.
More...
#include <CameraBackgroundBrush.h>
Inherits Object.
Inherited by CameraBackgroundDepthBrush, and CameraBackgroundSkyBoxBrush.
|
| virtual BrushType | getBrushType () const |
| | get brush type
|
|
void | drawBackground (Camera *camera) |
| | draw the background
|
| void | retain () |
| | Retains the ownership.
|
| void | release () |
| | Releases the ownership immediately.
|
| Object * | autorelease () |
| | Releases the ownership sometime soon automatically.
|
| unsigned int | getReferenceCount () const |
| | Returns the Object's current reference count.
|
| uint64_t | getObjectID () const noexcept |
| | Returns the process-local diagnostic identifier assigned at construction.
|
| virtual | ~Object () |
| | Destructor.
|
Defines a brush to clear the background of camera.
There are 4 types of brush. None brush do nothing, Depth brush clear background with given depth, Color brush clear background with given color and depth, Skybox brush clear the background with a skybox. Camera uses depth brush by default.
◆ BrushType
◆ getBrushType()
◆ createNoneBrush()
| CameraBackgroundBrush * createNoneBrush |
( |
| ) |
|
|
static |
Creates a none brush, it does nothing when clear the background.
- Returns
- Created brush.
◆ createDepthBrush()
Creates a depth brush, which clears depth buffer with a given depth.
- Parameters
-
| depth | Depth used to clear depth buffer |
- Returns
- Created brush
◆ createColorBrush()
Creates a color brush.
- Parameters
-
| color | Color of brush |
| depth | Depth used to clear depth buffer |
- Returns
- Created brush
◆ createSkyboxBrush()
| CameraBackgroundSkyBoxBrush * createSkyboxBrush |
( |
std::string_view | positive_x, |
|
|
std::string_view | negative_x, |
|
|
std::string_view | positive_y, |
|
|
std::string_view | negative_y, |
|
|
std::string_view | positive_z, |
|
|
std::string_view | negative_z ) |
|
static |
Creates a Skybox brush with 6 textures.
- Parameters
-
| positive_x | texture for the right side of the texture cube face. |
| negative_x | texture for the up side of the texture cube face. |
| positive_y | texture for the top side of the texture cube face |
| negative_y | texture for the bottom side of the texture cube face |
| positive_z | texture for the forward side of the texture cube face. |
| negative_z | texture for the rear side of the texture cube face. |
- Returns
- A new brush inited with given parameters.
The documentation for this class was generated from the following file: