Axmol 3.0.0-89d6d9a
Loading...
Searching...
No Matches
CameraBackgroundDepthBrush Class Reference

Depth brush clear depth buffer with given depth. More...

#include <CameraBackgroundBrush.h>

Inherits CameraBackgroundBrush.

Inherited by CameraBackgroundColorBrush.

Public Member Functions

BrushType getBrushType () const override
 Get brush type.
void drawBackground (const SceneRenderState &state) override
 Draw background.
void setDepth (float depth)
 Set depth.
Public Member Functions inherited from CameraBackgroundBrush
void drawBackground (Camera *camera)
 draw the background
Public Member Functions inherited from Object
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.

Static Public Member Functions

static CameraBackgroundDepthBrush * create (float depth)
 Create a depth brush.
Static Public Member Functions inherited from CameraBackgroundBrush
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 Color &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

Public Types inherited from CameraBackgroundBrush
enum class  BrushType
 Brush types. More...

Detailed Description

Depth brush clear depth buffer with given depth.

Member Function Documentation

◆ create()

CameraBackgroundDepthBrush * create ( float depth)
static

Create a depth brush.

Parameters
depthDepth used to clear the depth buffer
Returns
Created brush

◆ getBrushType()

BrushType getBrushType ( ) const
inlineoverridevirtual

Get brush type.

Should be BrushType::DEPTH

Returns
brush type

Reimplemented from CameraBackgroundBrush.

◆ setDepth()

void setDepth ( float depth)
inline

Set depth.

Parameters
depthDepth used to clear depth buffer

The documentation for this class was generated from the following file:
  • CameraBackgroundBrush.h