heyx3 / Bplus.jl

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

Context stores the active `Target` (or `nothing`). #22

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

It's global state, so it should be cached in the Context with the other global state.

Consider how to get that information after a context refresh. Perhaps we should just unbind the current framebuffer binding in that case.

After doing this, revisit the API for setting/clearing targets and the screen.