class

SfmlBook::Chapter5::SceneNode

Inherits SF::Drawable < SF::NonCopyable < SF::Transformable < Reference < Object

Constructors

Instance methods

attach(node : SceneNode)
Source
category
Source
detach(node : SceneNode)
Source
draw(target : SF::RenderTarget, states : SF::RenderStates)

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
Source
draw_children(target : SF::RenderTarget, states : SF::RenderStates)
Source
draw_current(target : SF::RenderTarget, states : SF::RenderStates)
Source
on_command(command : Command, delta : SF::Time)
Source
parent
Source
parent=(parent : Pointer(SceneNode))
Source
update(delta : SF::Time)
Source
update_children(delta : SF::Time)
Source
update_current(delta : SF::Time)
Source
world_transform
Source