Search found 1171 matches

by pgimeno
Tue Aug 14, 2018 6:34 pm
Forum: Support and Development
Topic: [SOLVED] `pcall(...)` inside `Canvas:renderTo(...)`
Replies: 4
Views: 262

Re: [SOLVED] `pcall(...)` inside `Canvas:renderTo(...)`

love.graphics.present() is called by the default love.run. If a canvas is active when love.draw finishes, you'll get that error because that's when love.graphics.present is called. That's the 'present' that the error message refers to.
by pgimeno
Sat Aug 11, 2018 10:33 am
Forum: Support and Development
Topic: Black Screen when Dropping .love on Love2D
Replies: 7
Views: 162

Re: Black Screen when Dropping .love on Love2D

Looks like the rectangle did work? Maybe look for newer drivers, then.
by pgimeno
Sat Aug 11, 2018 12:44 am
Forum: Support and Development
Topic: Black Screen when Dropping .love on Love2D
Replies: 7
Views: 162

Re: Black Screen when Dropping .love on Love2D

Does the no game screen work for you? I suspect you're having this issue: https://love2d.org/forums/viewtopic.php?t=85309 Just in case, try a rectangle. Instead of the love.graphics.print line, try love.graphics.rectangle("fill", 10, 10, 100, 100) Is your graphics card an old Radeon? If so, it's app...
by pgimeno
Fri Aug 10, 2018 6:21 pm
Forum: Support and Development
Topic: I want 2 texts with the same font but with 2 different sizes??
Replies: 10
Views: 190

Re: I want 2 texts with the same font but with 2 different sizes??

"All variants which accept a filename can also accept a Data object instead." - love.graphics.newFont

A FileData object is a Data object. It's documented to work.
by pgimeno
Tue Aug 07, 2018 11:28 pm
Forum: Support and Development
Topic: Keyboard handling not working
Replies: 5
Views: 190

Re: Keyboard handling not working

What makes you think that the table is being cleared? I see nothing wrong with the table. When pressing a second key while holding the first, it correctly prints the held key in love.keypressed (after disabling the print in input:update to not confuse both). On a secondary note, the case in Sprites/...
by pgimeno
Tue Aug 07, 2018 4:56 pm
Forum: Support and Development
Topic: Keyboard handling not working
Replies: 5
Views: 190

Re: Keyboard handling not working

What zorg said. I presume you're doing something along these lines: local keys = {} local function down(k) for i = 1, #keys do if keys[i] == k then return i end end return false end function love.keypressed(k) if not down(k) then table.insert(keys, k) end end function love.keyreleased(k) local index...
by pgimeno
Mon Aug 06, 2018 11:50 pm
Forum: General
Topic: custom fixed timestep
Replies: 6
Views: 183

Re: custom fixed timestep

Thanks for your reply pgimeno :) yep, I've disabled vsync (set it to 0). Just curious, how exactly could it interfere with what I want to do ? Say your vsync rate is 1/60th of a second. Say you set FRAME_DT to something like 1/100. Then when vsync is on, love.graphics.present() will introduce a del...
by pgimeno
Mon Aug 06, 2018 11:26 pm
Forum: Support and Development
Topic: Fast getPixel on canvas
Replies: 2
Views: 139

Re: Fast getPixel on canvas

Do you know of any methods to get a pointer on the video memory or a canvas directly? https://stackoverflow.com/questions/30678040/opengl-how-to-get-a-pointer-into-video-ram-for-a-textures-pixels Or more precisely, is it possible to get the color value of a pixel on the screen without generating an...
by pgimeno
Mon Aug 06, 2018 10:53 pm
Forum: General
Topic: custom fixed timestep
Replies: 6
Views: 183

Re: custom fixed timestep

Have you disabled vsync? Also, your love.graphics.present call is misplaced. For best responsiveness, first present the graphics, then do the waiting (will give players time to react), and then read the user's input based on what they saw. If you wait, then present, then read inputs, you're giving f...
by pgimeno
Fri Aug 03, 2018 4:16 pm
Forum: Support and Development
Topic: Help with shader
Replies: 6
Views: 170

Re: Help with shader

I sent nothing, the shader simply did no longer err out.

You can send an object of type Texture, be it a canvas or an image.