|
| S_DEFINE_STAGE_NODE_META (STAGE_NODE_TYPE_DIRECTIONAL_LIGHT, "directional_light") |
|
| S_DEFINE_STAGE_NODE_PARAM (DirectionalLight, "direction", FloatArray, Vec3(1, -0.5, 0), "The direction the light is pointing") |
|
| DirectionalLight (Scene *owner) |
|
bool | on_create (Params params) override |
|
| Light (Scene *owner, StageNodeType type) |
|
void | set_type (LightType type) |
|
Vec3 | direction () const |
|
void | set_direction (float x, float y, float z) |
|
void | set_range (float range) |
|
void | set_direction (const Vec3 &dir) |
|
void | set_diffuse (const smlt::Color &color) |
|
void | set_ambient (const smlt::Color &color) |
|
void | set_specular (const smlt::Color &color) |
|
LightType | light_type () const |
|
const smlt::Color & | ambient () const |
|
const smlt::Color & | diffuse () const |
|
const smlt::Color & | specular () const |
|
smlt::Color | global_ambient () const |
|
void | set_attenuation (float range, float constant, float linear, float quadratic) |
|
void | set_attenuation_from_range (float range) |
| Light::set_attenuation_from_range. More...
|
|
float | range () const |
|
float | constant_attenuation () const |
|
float | linear_attenuation () const |
|
float | quadratic_attenuation () const |
|
const AABB & | aabb () const override |
|
| ContainerNode (Scene *scene, StageNodeType node_type) |
|
void | do_generate_renderables (batcher::RenderQueue *, const Camera *, const Viewport *, const DetailLevel, Light **, const std::size_t) override |
|
std::vector< StageNode * > | find_descendents_by_types (std::initializer_list< StageNodeType > type_list) const |
|
StageNode * | find_descendent_with_id (StageNodeID id) |
|
const StageNode * | find_descendent_with_id (StageNodeID id) const |
|
bool | is_root () const |
|
StageNodePath | node_path () const |
|
StageNode * | first_sibling () |
|
const StageNode * | first_sibling () const |
|
StageNode * | next_sibling () |
|
const StageNode * | next_sibling () const |
|
StageNode * | parent () |
|
const StageNode * | parent () const |
|
StageNode * | first_child () |
|
const StageNode * | first_child () const |
|
StageNode * | last_child () |
|
const StageNode * | last_child () const |
|
const StageNode * | child_at (std::size_t i) const |
|
std::size_t | child_count () const |
|
bool | has_parent () const |
|
void | remove_from_parent () |
|
std::list< StageNode * > | detach () |
|
void | set_parent (StageNode *new_parent, TransformRetainMode transform_retain=TRANSFORM_RETAIN_MODE_LOSE) |
|
template<typename T , typename... Args> |
T * | create_child (Args &&... args) |
|
template<typename T > |
T * | create_child () |
|
template<typename T > |
T * | create_child (Params args) |
|
void | adopt_children (StageNode *node) |
|
template<typename... Params> |
void | adopt_children (StageNode *node, Params... args) |
|
template<typename T , typename... Args> |
T * | create_mixin (Args &&... args) |
|
StageNode * | create_mixin (const std::string &node_name, const Params ¶ms) |
|
StageNode * | find_mixin (const std::string &name) const |
|
template<typename T > |
T * | find_mixin () const |
|
std::size_t | mixin_count () const |
|
StageNode * | base () |
|
const StageNode * | base () const |
|
bool | is_mixin () const |
|
bool | generates_renderables_for_descendents () const |
|
std::size_t | generate_renderables (batcher::RenderQueue *render_queue, const Camera *, const Viewport *viewport, const DetailLevel detail_level, Light **lights, const std::size_t light_count) |
|
void | update (float dt) override final |
|
void | late_update (float dt) override final |
|
void | fixed_update (float step) override final |
|
template<typename T > |
size_t | count_nodes_by_type (bool include_destroyed=false) const |
|
bool | is_part_of_active_pipeline () const |
|
StageNode * | load_tree (const Path &path, const TreeLoadOptions &opts=TreeLoadOptions()) |
|
AncestorIteratorPair | each_ancestor () |
|
AncestorIteratorPair | each_ancestor () const |
|
DescendentIteratorPair | each_descendent () |
|
DescendentIteratorPair | each_descendent () const |
|
SiblingIteratorPair | each_sibling () |
|
SiblingIteratorPair | each_sibling () const |
|
ChildIteratorPair | each_child () |
|
ChildIteratorPair | each_child () const |
|
std::string | repr () const override |
|
| StageNode (Scene *owner, StageNodeType node_type) |
|
StageNodeType | node_type () const |
|
bool | is_visible () const |
|
bool | is_intended_visible () const |
|
void | set_visible (bool visible) |
|
smlt::Promise< void > | destroy_after (const Seconds &seconds) |
|
bool | parent_is_scene () const |
|
const AABB | transformed_aabb () const override |
|
const AABB & | aabb () const override |
|
ShadowCast | shadow_cast () const |
|
void | set_shadow_cast (ShadowCast cast) |
|
ShadowReceive | shadow_receive () const |
|
void | set_shadow_receive (ShadowReceive receive) |
|
StageNode * | find_descendent_with_name (const std::string &name) |
|
void | set_cullable (bool v) |
|
bool | is_cullable () const |
|
void | set_precedence (int16_t precedence) |
|
int16_t | precedence () const |
|
Transform * | get_transform () const |
|
| S_DEFINE_PROPERTY (transform, &StageNode::get_transform) |
|
| Identifiable (StageNodeID id) |
|
StageNodeID | id () const |
|
virtual bool | operator== (const Identifiable< StageNodeID > &rhs) const |
|
virtual bool | operator< (const Identifiable< StageNodeID > &rhs) const |
|
| DEFINE_SIGNAL (DestroyedSignal, signal_destroyed) |
|
bool | destroy () |
|
bool | destroy_immediately () |
|
bool | is_destroyed () const |
|
void | set_name (const std::string &name) |
|
const std::string & | name () const |
|
bool | has_name () const |
|
virtual const Vec3 | center () const |
|
virtual float | width () const |
|
virtual float | height () const |
|
virtual float | depth () const |
|
virtual float | half_width () const |
|
virtual float | half_height () const |
|
virtual float | half_depth () const |
|
virtual float | diameter () const |
|
virtual float | radius () const |
|
bool | init () |
|
void | clean_up () |
|
Light * | set_name_and_get (const std::string &name) |
|