Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mulle-nat opened this issue Mar 2, 2020 · 0 comments
Open

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

mulle-nat opened this issue Mar 2, 2020 · 0 comments

Comments

@mulle-nat
Copy link

mulle-nat commented Mar 2, 2020

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 mulle-nat changed the title Coordinates -1.0 to 1.0 don't span the whole viewport X coordinates -1.0 to 1.0 don't span the whole viewport Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant