#include <scene.h>
Definition at line 52 of file scene.h.
◆ SceneIntegrityError()
Scene::SceneIntegrityError::SceneIntegrityError |
( |
const std::string |
reason, |
|
|
const Scene & |
scene |
|
) |
| |
Definition at line 91 of file scene.cpp.
Exception(const char *message)
std::string getSceneLog(const Scene &scene, const std::string prefix, int recursionLeft=100) const
return $pool getJavaReference & scene(index)
◆ getSceneLog()
std::string Scene::SceneIntegrityError::getSceneLog |
( |
const Scene & |
scene, |
|
|
const std::string |
prefix, |
|
|
int |
recursionLeft = 100 |
|
) |
| const |
|
private |
Definition at line 30 of file scene.cpp.
31 std::string log = prefix +
"Scene has " +
std::to_string(
scene.getLayerCount()) +
" layers\n";
32 const int N =
scene.getLayerCount();
33 for (
int i = 0; i < N; i++) {
40 if (!casted.getBitmap())
43 log +=
", " + casted.getBitmap()->toString();
48 log +=
"masked bitmap";
49 MaskedBitmapLayer& casted =
layer.
castTo<MaskedBitmapLayer&>();
50 if (!casted.getBitmap())
53 log +=
", bitmap " + casted.getBitmap()->toString();
54 if (!casted.getMask())
57 log +=
", mask " + casted.getMask()->toString();
64 if (!casted.getBitmap())
65 log +=
", no content";
67 log +=
", " + casted.getBitmap()->toString();
83 if (recursionLeft > 0)
@ SceneLayer
layer containing a scene
@ MaskedBitmapLayer
layer displaying a bitmap with mask
@ ShadedBitmapLayer
layer displaying a bitmap through a custom fragment shader
@ BitmapLayer
layer displaying a bitmap
@ ShapedBitmapLayer
layer displaying a bitmap within a shape
const std::string & getName() const
bool isPhantom() const
Returns true if the layer is ignored when searching a layer by point.
LayerType & castTo() const
std::string to_string(Beatmup::NNets::ActivationFunction function)
Beatmup::Scene::Layer * layer
The documentation for this class was generated from the following files: