Page 1 of 1

[bug, 0.5] missing constants for love.graphics.circle

Posted: Thu Oct 16, 2008 4:15 pm
by hagish
I couldn't find the type constants for the function love.graphics.circle( type, x, y, radius ).
It seems that they are not available in lua or the documentation is wrong [ http://love2d.org/docs/love_graphics_circle_1.html ].
As a workaround i needed to use the numeric values defined in the love source:
* 1 = DRAW_LINE -> should be available as love.outline
* 2 = DRAW_FILL -> should be available as love.filled

Re: [bug, 0.5] missing constants for love.graphics.circle

Posted: Thu Oct 16, 2008 4:28 pm
by SnakeFace
Thanks for posting this hagish, I couldn't be bothered logging on myself to do it.

Re: [bug, 0.5] missing constants for love.graphics.circle

Posted: Fri Oct 17, 2008 8:40 am
by Kaze
love.graphics.circle(love.draw_line, ...)
Works fine for me.

Re: [bug, 0.5] missing constants for love.graphics.circle

Posted: Fri Oct 17, 2008 12:09 pm
by rude
Hmm, love.draw_line and love.draw_filled are in the documentation and appear to be exported to Lua as well ...

Re: [bug, 0.5] missing constants for love.graphics.circle

Posted: Fri Oct 17, 2008 12:47 pm
by hagish
i would change the line at http://love2d.org/docs/love_graphics_circle_1.html
-> type The type of circle (outline/filled).
into
-> type The type of circle (love.draw_line/love.draw_fill).
then its perfectly clear.
because from looking at the documentation of the circle function you will not find the constant names :)