class SfmlBook::Chapter6::SceneNode

Included Modules

Direct Known Subclasses

Defined in:

chapter6/scene_node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def attach(node : SceneNode) #

[View source]
def category #

[View source]
def detach(node : SceneNode) #

[View source]
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

[View source]
def draw_children(target : SF::RenderTarget, states : SF::RenderStates) #

[View source]
def draw_current(target : SF::RenderTarget, states : SF::RenderStates) #

[View source]
def on_command(command : Command, delta : SF::Time) #

[View source]
def parent : Pointer(SceneNode) #

[View source]
def parent=(parent : Pointer(SceneNode)) #

[View source]
def update(delta : SF::Time) #

[View source]
def update_children(delta : SF::Time) #

[View source]
def update_current(delta : SF::Time) #

[View source]
def world_transform #

[View source]