![]() |
Simulant
21.12-1292
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
|
Additional Inherited Members | |
![]() | |
typedef StageNodeID | id_type |
![]() | |
S_DEFINE_STAGE_NODE_META (STAGE_NODE_TYPE_CAMERA, "camera") | |
Camera (Scene *owner) | |
const AABB & | aabb () const override |
const AABB | transformed_aabb () const override |
smlt::optional< Vec3 > | project_point (const RenderTarget &target, const Viewport &viewport, const Vec3 &point) const |
smlt::optional< Vec3 > | unproject_point (const RenderTarget &target, const Viewport &viewport, const Vec3 &win_point) |
const Mat4 & | view_matrix () const |
const Mat4 & | projection_matrix () const |
Frustum & | frustum () |
const Frustum & | frustum () const |
void | set_projection_matrix (const Mat4 &matrix) |
void | set_perspective_projection (const Degrees &fov, float aspect, float near=1.0f, float far=1000.0f) |
void | set_orthographic_projection (float left, float right, float bottom, float top, float near=-1.0, float far=1.0) |
float | set_orthographic_projection_from_height (float desired_height_in_units, float ratio) |
bool | on_create (Params params) override |
void | do_generate_renderables (batcher::RenderQueue *, const Camera *, const Viewport *, const DetailLevel, Light **, const std::size_t) 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 () |
![]() | |
Camera * | set_name_and_get (const std::string &name) |
![]() | |
Property< generic::DataCarrier StageNode::* > | data |
Property< Scene *StageNode::* > | scene = {this, &StageNode::owner_} |
![]() | |
virtual bool | on_destroy () override |
virtual void | on_update (float dt) override |
virtual void | on_fixed_update (float step) override |
virtual void | on_late_update (float dt) override |
void | on_transformation_changed () override |
void | on_transformation_change_attempted () override |
template<typename N > | |
bool | clean_params (Params ¶ms) |
Scene * | get_scene () const |
void | recalc_bounds_if_necessary () const |
void | mark_transformed_aabb_dirty () |