heyx3 / Bplus.jl

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

Refactor functions for clearing screen and/or `Target`s #27

Closed heyx3 closed 10 months ago

heyx3 commented 1 year ago

The current implementation is messy, and spread across GL/drawing.jl and GL/targets/target.jl.

Plus I'm not sure if the drawbuffer parameter of the calls to glClearNamedFramebuffer*v() is being calculated correctly; and even if it is, it's not 1-based like it probably should be.

heyx3 commented 10 months ago

This has just been fixed; I was cleaning up code during documentation work. Now the clear functions in GL/drawing.jl are just for clearing the screen, and as a result they are far simpler to use.