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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

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

Post 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
SnakeFace
Prole
Posts: 28
Joined: Tue Aug 19, 2008 2:45 pm

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

Post by SnakeFace »

Thanks for posting this hagish, I couldn't be bothered logging on myself to do it.
Lovely quotes
somewhere within the jungle of administrative doom - rude
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

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

Post by Kaze »

love.graphics.circle(love.draw_line, ...)
Works fine for me.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

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

Post by rude »

Hmm, love.draw_line and love.draw_filled are in the documentation and appear to be exported to Lua as well ...
User avatar
hagish
Citizen
Posts: 85
Joined: Thu May 01, 2008 12:51 pm
Contact:

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

Post 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 :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 10 guests