How to double-buffer?Hi, each

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
fridge.
Prole
Posts: 1
Joined: Sun Dec 26, 2010 1:36 pm

How to double-buffer?Hi, each

Post 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
User avatar
vrld
Party member
Posts: 917
Joined: Sun Apr 04, 2010 9:14 pm
Location: Germany
Contact:

Re: How to double-buffer?Hi, each

Post 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
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum.

hump | HC | SUIT | moonshine
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 63 guests