8527d84d35
GPUState: Move Scissor and Viewport state to framebuffer
...
This way it is way clearer what each viewport state is. There is
no more save and reset. The scissor test is also saved per
framebuffer.
The only rule to remember is that the viewport state (size and
origin) is reset for both the viewport and scissor when a texture
is attached or detached from an attachment slot.
2020-08-30 13:11:03 +02:00
3a6e981bcd
Cleanup: GPU: Update classes comments
...
This should avoid confusion about what is a class and what is an opaque
pointer.
2020-08-21 14:16:42 +02:00
1dafa87eb5
GPUState: Fix signed / bitfield conversion leading to wrong enum value
...
This was creating drawing issues on windows builds.
2020-08-19 17:13:53 +02:00
7a602fb525
Cleanup: spelling
2020-08-19 14:04:36 +10:00
adca09b643
GPUState: Port default state to StateManager constructor
2020-08-18 21:30:11 +02:00
536c2e0ec9
GPUState: Only apply state before drawing
2020-08-18 21:30:10 +02:00
482a51aabf
Cleanup: GPUState: Remove stack from the state manager and rename it
2020-08-18 21:30:10 +02:00
f30df15edc
GPUState: Make use of GPUStateStack class
...
This isolate most GL calls to the GL backend. Still a few remains.
2020-08-18 21:30:10 +02:00
2ae1c895a2
GPUState: Add GL backend and state tracking but do not use it
...
This is just the backend work. It is not plugged in yet because it
needs more external cleanup/refactor.
2020-08-18 21:30:10 +02:00