class SfmlBook::Chapter3::SceneNode

Included Modules

Direct Known Subclasses

Defined in:

chapter3/scene_node.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def attach(node : SceneNode) #

[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 parent : SceneNode | Nil #

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

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