[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 » Thu Oct 16, 2008 4:15 pm

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 » Thu Oct 16, 2008 4:28 pm

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 » Fri Oct 17, 2008 8:40 am

love.graphics.circle(love.draw_line, ...)
Works fine for me.

User avatar
rude
Administrator
Posts: 1051
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

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

Post by rude » Fri Oct 17, 2008 12:09 pm

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 » Fri Oct 17, 2008 12:47 pm

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 13 guests