GSDL::Shape
Inherits GSDL::Centerable < GSDL::Tweenable < Reference < Object
Constructors
Instance methods
needs to be called at the end of initialization, and in every #draw method (only if #changed?)
Macros
for getters, with variables calculated inside update_geometry so the variable is updated first ex: alias Vertices = Array(Vertex) getters_update_geometry({fill_vertices : Vertices = [] of Vertex})
outputs to: @fill_vertices : Vertices = [] of Vertex def fill_vertices : Vertices update_geometry if @changed @fill_vertices end
for creating getter/setter, for variables affecting update_geometry so we know to call update_geometry in draw methods, if this var changes ex: alias Vertices = Array(Vertex) getters_update_geometry({fill_vertices : Vertices = [] of Vertex})
outputs to: @fill_vertices : Vertices = [] of Vertex def fill_vertices : Vertices update_geometry if @changed @fill_vertices end