Search found 687 matches

by Ref
Thu Apr 05, 2018 2:41 pm
Forum: General
Topic: 11.0 bugs
Replies: 47
Views: 43707

Re: 11.0 bugs

Is there no direct way to get imagedata from an image in Love 11?
The only way I've found is to draw the image to a canvas and then get the imagedata from the canvas or to reload the image from a file as imagedata.
by Ref
Wed Apr 04, 2018 8:54 pm
Forum: Support and Development
Topic: Canvas & Stencil in Love 11.0
Replies: 12
Views: 5861

Re: Canvas & Stencil in Love 11.0

Bingo!

Code: Select all

gr.setCanvas( {canvas, stencil=true} )
does work.
Just have to get the brackets in the right places.
Thanks for the help!
by Ref
Wed Apr 04, 2018 1:55 pm
Forum: Support and Development
Topic: Canvas & Stencil in Love 11.0
Replies: 12
Views: 5861

Re: Canvas & Stencil in Love 11.0

Glad to hear you got it to work.
Used your suggestion and got the same error message for the line mentioned above.
Must be something else in the code that is causing this Love 10 script to fail in Love 11.
More head scratching required!
by Ref
Mon Apr 02, 2018 7:24 pm
Forum: Support and Development
Topic: Canvas & Stencil in Love 11.0
Replies: 12
Views: 5861

Canvas & Stencil in Love 11.0

Error message: Error physics.lua:435: Drawing to the stencil buffer with a Canvas active requires either stencil=true or a custom stencil-type Canvas to be used, in setCanvas. Code referenced: texCanvas = function( canW, canH, image, x, y, a, sx, sy, wd, ht ) local canvas = love.graphics.newCanvas( ...
by Ref
Sat Mar 31, 2018 1:43 am
Forum: General
Topic: Mouse versus Touch
Replies: 4
Views: 1142

Re: Mouse versus Touch

Agree!
I just didn't anticipate that touch moved the mouse.
Now I can anticipate.
by Ref
Fri Mar 30, 2018 9:01 pm
Forum: General
Topic: Mouse versus Touch
Replies: 4
Views: 1142

Re: Mouse versus Touch

You're right but it just seemed strange that a value would continue to be returned when there was no longer any contact. With the mouse, the mouse is still actively over the selected area while the finger is no longer on the screen - mx, my = love.mouse.getPosition( ) returning values even when no c...
by Ref
Fri Mar 30, 2018 3:32 pm
Forum: General
Topic: Mouse versus Touch
Replies: 4
Views: 1142

Mouse versus Touch

Have written a simple function to detect mouse interaction with a given area of the screen. listbox.contact = function( x, y, w, h ) -- mouse over/clicked rectangle local contact, hover local mx, my = love.mouse.getPosition( ) if mx > x and my > y and mx < x+w and my < y+h then hover = true if love....
by Ref
Fri Mar 23, 2018 2:08 am
Forum: Support and Development
Topic: Share a Shader!
Replies: 320
Views: 136158

Re: Share a Shader!

The mysteries of shaders. Don't have a clue as to how this shader works!
by Ref
Thu Mar 15, 2018 3:17 pm
Forum: Support and Development
Topic: Rope Physics Help
Replies: 19
Views: 4042

Re: Rope Physics Help

I always liked Micha's rope simulation.
Contains a lot of interesting code.
Best
by Ref
Sun Dec 17, 2017 6:48 pm
Forum: Support and Development
Topic: rotation question
Replies: 20
Views: 3245

Re: rotation question

Something like this?