You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These offsets are very important when drawing to the GS, especially when drawing outside of the draw area.
The GS coordinate system uses 12.4 bits fixed point resolution. So we can draw from 0 to 4095 (12 bit), with subpixel accuracy of 1/16th pixel (4bit).
The render buffer can be placed into this 4k x 4k area using the offset registers. Good practice is to put the renderbuffer in the center of this area (as OPL does).
What you need is an offset into the renderbuffer. Such offset does not exist in the gs hardware, and also not in gsKit as far as I'm aware. You'll have to manage the offset in your application (SDL in this specific case).
You probably also want to set the scissor to make sure you don't draw outside of your viewport.
I have some questions about how these values are working.
Why those values are set by default as:
Then later on we are doing:
And finally, everytime we perform any primitive we are doing things like:
Shouldn't be these values set originally as
0,0
and then never use those values when calculating the final vertex position?The text was updated successfully, but these errors were encountered: