struct Breakout::Block
- Breakout::Block
- Struct
- Value
- Object
Included Modules
- SF::Drawable
Defined in:
breakout/block.crConstructors
Instance Method Summary
- #destroyed : Bool
- #destroyed=(destroyed : Bool)
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
- #element : SF::RectangleShape
- #element=(element : SF::RectangleShape)
Constructor Detail
def self.new(index : Int32, textures : Array(SF::Texture), size : SF::Vector2 | Tuple = SF::Vector2.new(0, 0))
#
Instance Method Detail
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