opened
jakelewis3d
username_0
g4.clear() seems to clear the entire framebuffer rather than just the area defined by g4.viewport().
I can see that this might be the intended functionality, but is there a way to restrict clearing the screen to just a rectangle / viewport?
g4.clear() is not bound by g4.viewport()
issue
created
luboslenco
username_1
Does `g4.scissor()` work?
comment
created
RblSb
username_2
+1 for `clearRect(x, y, w, h)` :)
comment
created
RobDangerous
username_3
Do 3D APIs work that way? Have to check.
comment
created
luboslenco
username_1
Yes, from https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glClear.xml:
`The pixel ownership test, the scissor test, dithering, and the buffer writemasks affect the operation of glClear. The scissor box bounds the cleared region.`
comment
created
RobDangerous
username_3
I put some scissors in the garden, you can now take care of your bonsai trees.
comment
created
luboslenco
username_1
Bonsai tree is grateful, looking sharp again:
http://kodegarden.org/#177720764e073d071578dd82c7e9db02ccc8ea60
comment
created
jakelewis3d
username_0
Working well, thank you.
comment
closed
RobDangerous
username_3
issue
created
RobDangerous
username_3
I suppose this is fixed - if it isn't please reopen and tell use about which target this was actually about.
comment