heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Consider making a special Target representing the screen (back and front buffer) #47

Closed heyx3 closed 9 months ago

heyx3 commented 1 year ago

It's conceptually elegant, but is it practical? Currently I think so.

This special Target would be owned by the Context.

heyx3 commented 9 months ago

Clearing has been refactored and is now quite simple: clear_screen() for the screen, and target_clear() for targets. No need to add a special-case Target instance.