Hey everyone, I've ben using luaplayer for about 3 months now, and Im pretty good at it. However, I noticed something in version .12, screen:clear() doesnt work!
Well, it works, but only in the color black. I've tried everything,
---------
white = Color.new(255,255,255)
screen:clear(white)
--------
screen:clear(Color.new(255,255,255))
--------
But it wont clear the screen white!
I was thinking of using the screen:fillRect() function instead...
Any help?
screen:clear() bug in .12?
Moderators: Shine, Insert_witty_name
That's not really surprising, as the clear method in svn doesn't even use the color ;)
I guess that needs a
sceGuClearColor(color);
after the sceGuClearDepth(0);
Code: Select all
void clearScreen(Color color)
{
if (!initialized) return;
guStart();
sceGuClearDepth(0);
sceGuClear(GU_COLOR_BUFFER_BIT|GU_DEPTH_BUFFER_BIT);
sceGuFinish();
sceGuSync(0, 0);
}
sceGuClearColor(color);
after the sceGuClearDepth(0);