class SfmlBook::Chapter4::SceneNode
- SfmlBook::Chapter4::SceneNode
- SF::Transformable
- Reference
- Object
Included Modules
- SF::Drawable
- SF::NonCopyable
Direct Known Subclasses
Defined in:
chapter4/scene_node.crConstructors
Instance Method Summary
- #attach(node : SceneNode)
- #category
- #detach(node : SceneNode)
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
- #draw_children(target : SF::RenderTarget, states : SF::RenderStates)
- #draw_current(target : SF::RenderTarget, states : SF::RenderStates)
- #on_command(command : Command, delta : SF::Time)
- #parent : SceneNode | Nil
- #parent=(parent : SceneNode | Nil)
- #update(delta : SF::Time)
- #update_children(delta : SF::Time)
- #update_current(delta : SF::Time)
- #world_transform
Constructor Detail
Instance Method Detail
def draw(target : SF::RenderTarget, states : SF::RenderStates)
#
Description copied from module SF::Drawable
Draw the object to a render target.
This is an abstract method that has to be implemented by the including class to define how the drawable should be drawn.
- target - Render target to draw to
- states - Current render states