icy-arctic-fox / processing.cr

Port of the Processing sketchbook software to Crystal.
10 stars 2 forks source link

Should we switch from SDL to Cairo? #16

Open postmodern opened 3 years ago

postmodern commented 3 years ago

SDL is kind of limited when it comes to drawing primitives (no polygon, circle, arc support). We could switch to using Cairo. There's a homebrew formula for cairo and someone has already written cairo crystal bindings.

icy-arctic-fox commented 3 years ago

What would be the performance impact? and can users still perform OpenGL drawing calls? With SDL we will likely need to implement our own primitive drawing methods, probably with shaders.