Skip to content

Improved draw_buffer#2010

Merged
alecjacobson merged 3 commits intomainfrom
draw-buffer
Mar 27, 2022
Merged

Improved draw_buffer#2010
alecjacobson merged 3 commits intomainfrom
draw-buffer

Conversation

@alecjacobson
Copy link
Copy Markdown
Contributor

The previous ViewerCore::draw_buffer only draw a single ViewerData entry (suprise! only one mesh got drawn) and the caller had to specify the size when often they just wanted the current viewport size.

This PR sets the size to the viewport if it's passed as empty and adds a Viewer::draw_buffer routine that will draw an entire ViewerCore. The ViewerCore::draw_buffer is left in place but should probably be removed in the future. I could imagine wanting to draw multiple cores, leaving that for a future PR to refactor this further.

The new Viewer::draw_buffer also writes depth images and templates the output type the caller can get higher precision images, too.

@alecjacobson alecjacobson merged commit 142fd60 into main Mar 27, 2022
@alecjacobson alecjacobson deleted the draw-buffer branch March 27, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant