I am doing something very simple but it does not seem to work. I am trying to load an image and display it on the screen. But all i get is a white block the size of the image. Smaller images do work but this big image does not. It don't think it is my graphics card as i have a 1 gb GEFORCE GT 540M. But i can't figure out what is going wrong.
As my code shows i just do two things:
load the image
display the image
Any help is greatly appreciated
function love.load()
sprite=love.graphics.newImage("sonic.gif")
--quad=love.graphics.newQuad(24,44,20,30,800,1130)
end
function love.draw()
love.graphics.draw(sprite)
end
function love.update(dt)
end
function love.quit()
print("Thanks for playing. Please play again soon!")
end
They're for LOVE, not for an OS
You have to zip main.lua and sonic.gif (and every other file you need for your program, but NOT the folder they're in), rename the file from .zip to .love and you're done
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
LÖVE currently doesn't catch the error when the graphics driver fails to load big images. Your graphics card/driver seems to be limited to 1024x1024 textures. It may be higher, but LÖVE will pad it to 2048 if the card doesn't support non-power-of-two textures and surely go over it.
You'll have to split the image up in smaller parts.