| View previous topic :: View next topic |
| Author |
Message |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Sun Nov 06, 2005 2:24 am Post subject: screen:clear() bug in .12? |
|
|
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? |
|
| Back to top |
|
 |
Durante
Joined: 02 Oct 2005 Posts: 65 Location: Austria
|
Posted: Sun Nov 06, 2005 3:20 am Post subject: |
|
|
That's not really surprising, as the clear method in svn doesn't even use the color ;)
| Code: | void clearScreen(Color color)
{
if (!initialized) return;
guStart();
sceGuClearDepth(0);
sceGuClear(GU_COLOR_BUFFER_BIT|GU_DEPTH_BUFFER_BIT);
sceGuFinish();
sceGuSync(0, 0);
} |
I guess that needs a
sceGuClearColor(color);
after the sceGuClearDepth(0); |
|
| Back to top |
|
 |
Bob535
Joined: 04 Nov 2005 Posts: 56
|
Posted: Sun Nov 06, 2005 5:20 am Post subject: |
|
|
| Hmmm, would someone let shine know so we can get this fixed in the next release? It does show in the Lua Functions that it should work just using screen:clear(color) |
|
| Back to top |
|
 |
youresam
Joined: 06 Nov 2005 Posts: 87
|
Posted: Sun Nov 06, 2005 6:22 am Post subject: |
|
|
| Yeah, I guess Shine missed that... |
|
| Back to top |
|
 |
|