Skybox brush clear buffer with a skybox.
More...
Inherits CameraBackgroundBrush.
|
static CameraBackgroundSkyBoxBrush * | create (const std::string &positive_x, const std::string &negative_x, const std::string &positive_y, const std::string &negative_y, const std::string &positive_z, const std::string &negative_z) |
| Creates a Skybox brush with 6 textures. More...
|
|
static CameraBackgroundSkyBoxBrush * | create () |
| Creates a Skybox brush with 6 textures.
|
|
static CameraBackgroundBrush * | createNoneBrush () |
| Creates a none brush, it does nothing when clear the background. More...
|
|
static CameraBackgroundDepthBrush * | createDepthBrush (float depth=1.f) |
| Creates a depth brush, which clears depth buffer with a given depth. More...
|
|
static CameraBackgroundColorBrush * | createColorBrush (const Color4F &color, float depth) |
| Creates a color brush. More...
|
|
static CameraBackgroundSkyBoxBrush * | createSkyboxBrush (const std::string &positive_x, const std::string &negative_x, const std::string &positive_y, const std::string &negative_y, const std::string &positive_z, const std::string &negative_z) |
| Creates a Skybox brush with 6 textures. More...
|
|
|
enum | BrushType |
| Brush types. More...
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
Skybox brush clear buffer with a skybox.
◆ getBrushType()
◆ create()
static CameraBackgroundSkyBoxBrush* create |
( |
const std::string & |
positive_x, |
|
|
const std::string & |
negative_x, |
|
|
const std::string & |
positive_y, |
|
|
const std::string & |
negative_y, |
|
|
const std::string & |
positive_z, |
|
|
const std::string & |
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.
◆ setTexture()
Set skybox texture.
- Parameters
-
The documentation for this class was generated from the following file:
- CCCameraBackgroundBrush.h