mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-04 03:15:59 -04:00
Add another pixel perfectness test
This commit is contained in:
parent
26de0e0cbd
commit
fe210e177e
@ -69,6 +69,16 @@ int Run() {
|
|||||||
render.DrawRect(5, 5, 7, 7);
|
render.DrawRect(5, 5, 7, 7);
|
||||||
render.DrawRect(3, 3, 9, 9);
|
render.DrawRect(3, 3, 9, 9);
|
||||||
|
|
||||||
|
// Rect corner test
|
||||||
|
// This may show diagonal lines:
|
||||||
|
// - bright ones indicate that pixels are overdrawn
|
||||||
|
// - dark ones indicate that some corner pixels are missing
|
||||||
|
// Unfortunately, on most implementations some of
|
||||||
|
// these problems exist
|
||||||
|
render.SetDrawColor(255, 255, 255, 32);
|
||||||
|
for (int i = 0; i < 50; i++)
|
||||||
|
render.DrawRect(100+i, 100+i, 200-i, 200-i);
|
||||||
|
|
||||||
render.Present();
|
render.Present();
|
||||||
|
|
||||||
// Frame limiter
|
// Frame limiter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user