Axmol Engine 2.4.0-258ceca
|
Depth brush clear depth buffer with given depth. More...
#include <CameraBackgroundBrush.h>
Inherits CameraBackgroundBrush.
Inherited by CameraBackgroundColorBrush.
Public Member Functions | |
virtual BrushType | getBrushType () const override |
Get brush type. | |
virtual void | drawBackground (Camera *camera) override |
Draw background. | |
void | setDepth (float depth) |
Set depth. | |
![]() | |
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. | |
virtual | ~Object () |
Destructor. | |
Static Public Member Functions | |
static CameraBackgroundDepthBrush * | create (float depth) |
Create a depth brush. | |
![]() | |
static CameraBackgroundBrush * | createNoneBrush () |
Creates a none brush, it does nothing when clear the background. | |
static CameraBackgroundDepthBrush * | createDepthBrush (float depth=1.f) |
Creates a depth brush, which clears depth buffer with a given depth. | |
static CameraBackgroundColorBrush * | createColorBrush (const Color4F &color, float depth) |
Creates a color brush. | |
static 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) |
Creates a Skybox brush with 6 textures. | |
Additional Inherited Members | |
![]() | |
enum class | BrushType |
Brush types. More... | |
![]() | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
Depth brush clear depth buffer with given depth.
|
static |
Create a depth brush.
depth | Depth used to clear the depth buffer |
|
inlineoverridevirtual |
Get brush type.
Should be BrushType::DEPTH
Reimplemented from CameraBackgroundBrush.
Reimplemented in CameraBackgroundColorBrush.
|
inline |
Set depth.
depth | Depth used to clear depth buffer |