Class: SDC::DrawShape

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_DrawShape.rb,
engine_docs/automatic_doc_DrawShape.rb

Overview

Abstract drawing shape class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fill_colorColor

Fill color of the shape

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 9

#originCoordinates

Origin point of the shape

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 37

#outline_colorColor

Outline color of the shape

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 17

#outline_thicknessFloat

Thickness of the shape outline

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_DrawShape.rb', line 13

#positionCoordinates

Position of the shape

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 25

#rotationFloat

Rotation angle of the shape in degrees

Returns:

  • (Float)


# File 'engine_docs/automatic_doc_DrawShape.rb', line 33

#scaleCoordinates

Scale vector of the shape

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 29

#texture_rectIntRect

Rectangle defining the texture area to be drawn

Returns:



# File 'engine_docs/automatic_doc_DrawShape.rb', line 21

Instance Method Details

Links an existing texture to the shape

Parameters:

  • texture

    Texture

Returns:

  • (true)


# File 'engine_docs/automatic_doc_DrawShape.rb', line 41