Black image.
Posted: Sat Mar 26, 2011 3:58 am
Hi
Renders a black image for me. The text is also black.
If I remove
The whole screen is white (white text and image on white background)
Can someone tell me what I'm doing wrong?
EDIT: Huh, I read the PO2 syndrome and if I resize it to 256x256 it displays. I didn't think this would happen, my graphics card isn't too old (8800GTS)
Code: Select all
function love.load()
image = love.graphics.newImage("image1.png")
sound1 = love.audio.newSource("sound1.mp3")
local f = love.graphics.newFont(14)
love.graphics.setFont(f)
love.graphics.setColor(0,0,0,255)
love.graphics.setBackgroundColor(255,255,255)
end
Code: Select all
function love.draw()
love.graphics.print("Hello World", 400, 600)
love.graphics.draw(image)
end
If I remove
Code: Select all
love.graphics.setColor(0,0,0,255)
Can someone tell me what I'm doing wrong?
EDIT: Huh, I read the PO2 syndrome and if I resize it to 256x256 it displays. I didn't think this would happen, my graphics card isn't too old (8800GTS)