Class: SDC::DrawShape
- Inherits:
- 
      Object
      
        - Object
- SDC::DrawShape
 
- Defined in:
- engine_docs/automatic_doc_DrawShape.rb,
 engine_docs/automatic_doc_DrawShape.rb
Overview
Abstract drawing shape class
Direct Known Subclasses
DrawShapeCircle, DrawShapeLine, DrawShapePoint, DrawShapeRectangle, DrawShapeTriangle
Instance Attribute Summary collapse
- 
  
    
      #fill_color  ⇒ Color 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Fill color of the shape. 
- 
  
    
      #origin  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Origin point of the shape. 
- 
  
    
      #outline_color  ⇒ Color 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Outline color of the shape. 
- 
  
    
      #outline_thickness  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Thickness of the shape outline. 
- 
  
    
      #position  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Position of the shape. 
- 
  
    
      #rotation  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Rotation angle of the shape in degrees. 
- 
  
    
      #scale  ⇒ Coordinates 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Scale vector of the shape. 
- 
  
    
      #texture_rect  ⇒ IntRect 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Rectangle defining the texture area to be drawn. 
Instance Method Summary collapse
- 
  
    
      #link_texture(texture)  ⇒ true 
    
    
  
  
  
  
  
  
  
  
  
    Links an existing texture to the shape. 
Instance Attribute Details
#origin ⇒ Coordinates
Origin point of the shape
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 37
 | 
#outline_color ⇒ Color
Outline color of the shape
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 17
 | 
#outline_thickness ⇒ Float
Thickness of the shape outline
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 13
 | 
#position ⇒ Coordinates
Position of the shape
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 25
 | 
#rotation ⇒ Float
Rotation angle of the shape in degrees
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 33
 | 
#scale ⇒ Coordinates
Scale vector of the shape
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 29
 | 
#texture_rect ⇒ IntRect
Rectangle defining the texture area to be drawn
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 21
 | 
Instance Method Details
#link_texture(texture) ⇒ true
Links an existing texture to the shape
|  | # File 'engine_docs/automatic_doc_DrawShape.rb', line 41
 |