abstract class Scar::Components::Drawable

Overview

Base class for components that have some drawable attached to them, e. g. sprites

Components inheriting from this class must define a getter to a SFML Drawable, see Scar::Drawable.

Note that this is just a convenience class, you can also just include Scar::Drawable or SF::Drawable in your Component and it will be drawn regardless.

Included Modules

Direct Known Subclasses

Defined in:

scar/components/drawable.cr

Instance methods inherited from module Scar::Drawable

blend_mode : SF::BlendMode blend_mode, blend_mode=(blend_mode : SF::BlendMode) blend_mode=, drawable : SF::Drawable drawable, shader : SF::Shader shader, shader=(shader : SF::Shader) shader=, texture : SF::Texture texture, texture=(texture : SF::Texture) texture=, visible=(visible) visible=, visible? visible?