Page 1 of 1

How to double-buffer?Hi, each

Posted: Sun Dec 26, 2010 1:38 pm
by fridge.
Hi,
Each time I draw on the screen it gets deleted immediately. Also Framebuffer does not work for me.
What should I do?

Greetings

Re: How to double-buffer?Hi, each

Posted: Sun Dec 26, 2010 3:24 pm
by vrld
Without knowing your code it's difficult to say what you are doing wrong. But i suspect that you need to put the drawing code into love.draw, like so:

Code: Select all

function love.load()
    love.graphics.setFont(30)
end

function love.draw()
    love.graphics.print("Hello World", 100, 100)
end