bluecadet / Cinder-BluecadetViews

Scene graph Cinder block with touch management and various tools for UI dev
MIT License
11 stars 3 forks source link

Added support to StrokedRoundedRectView for individual corner control #126

Open adielfernandez opened 6 years ago

adielfernandez commented 6 years ago

Needed it for WetlandData so I added some ci::Anim's and tweaked the shader to allow for changing the radii of individual corners. See ViewTypesSample app for use case. The conditional in the shader isn't ideal, of course, but I can't imagine any perceivable slowdowns.

Feel free to make changes to for styling consistency/preference. Probably should have changed useUniformCorners(bool use) to setUniformCorners(bool use)

adielfernandez commented 6 years ago

Yeah, that makes sense! Will add it in shortly.