module Scar::Drawable
Overview
This module provides an easy way to use SFML drawables in your application.
If this module is included in your Component or Object, any Objects::Camera in
the space containing your entity will draw it to the screen.
Use #visible=, #texture, #shader and #blend_mode to customize drawing.
If you want to be able to transform your drawable component, include SF::Transformable.
Instead of using this module, you can also include SF::Drawable and implement the #draw method yourself if you prefer.
Example usage: See Components::Sprite (source),
Components::Tilemap (source) or other builtin components.
Included Modules
- SF::Drawable
Direct including types
Defined in:
scar/drawable.crInstance Method Summary
- 
        #blend_mode : SF::BlendMode
        
          Set this to use a blend mode while drawing 
- 
        #blend_mode=(blend_mode : SF::BlendMode)
        
          Set this to use a blend mode while drawing 
- 
        #drawable : SF::Drawable
        
          Should return the underlying SF::Drawable, e.
- 
        #shader : SF::Shader
        
          Set this to use a shader while drawing 
- 
        #shader=(shader : SF::Shader)
        
          Set this to use a shader while drawing 
- 
        #texture : SF::Texture
        
          Set this to use a texture while drawing 
- 
        #texture=(texture : SF::Texture)
        
          Set this to use a texture while drawing 
- 
        #visible=(visible)
        
          Can be used to disable drawing 
- #visible?
Instance Method Detail
Should return the underlying SF::Drawable, e. g. SF::Sprite or SF::Text