class SfmlBook::Chapter5::SceneNode
- SfmlBook::Chapter5::SceneNode
- SF::Transformable
- Reference
- Object
Included Modules
- SF::Drawable
- SF::NonCopyable
Direct Known Subclasses
Defined in:
chapter5/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 : Pointer(SceneNode)
- #parent=(parent : Pointer(SceneNode))
- #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