swrast icon indicating copy to clipboard operation
swrast copied to clipboard

X coordinates -1.0 to 1.0 don't span the whole viewport

Open mulle-nat opened this issue 4 years ago • 0 comments

I modified the subpixel example so it should fill the whole screen:

		framebuffer_clear(ctx.target, 0xFF, 0x0, 0, 0xFF);

		ia_begin(&ctx);

		ia_color(&ctx, 1.0f, 1.0f, 0.0f, 1.0f);

		ia_vertex(&ctx, -1.0, -1.0f, 0.0f, 1.0f);
		ia_vertex(&ctx, 1.0f, -1.0f, 0.0f, 1.0f);
		ia_vertex(&ctx, -1.0f, 1.0f, 0.0f, 1.0f);

		ia_vertex(&ctx, 1.0f, 1.0f, 0.0f, 1.0f);
		ia_vertex(&ctx, -1.0f, 1.0f, 0.0f, 1.0f);
		ia_vertex(&ctx, 1.0f, -1.0f, 0.0f, 1.0f);

		ia_end(&ctx);

But there is a small unfilled part on the right side of the window. Looks like a rounding error maybe ?

Screenshot from 2020-03-02 15-59-32

Otherwise this is a really cool project. I am having quite a bit of fun with it.

mulle-nat avatar Mar 02 '20 15:03 mulle-nat