sdl2 :: SDLRenderer :: draw_color
The returned SDLColor
is malloced here and must be freed by the called.
For a more efficient usage, it is recommended to use instead draw_color_copy
.
# Get the drawing color of this renderer
#
# The returned `SDLColor` is malloced here and must be freed by the called.
# For a more efficient usage, it is recommended to use instead `draw_color_copy`.
fun draw_color: SDLColor
do
var color = new SDLColor.malloc
draw_color_copy color
return color
end
lib/sdl2/sdl2_base.nit:281,2--290,4