Graphics draw methods taking only ints

Wasn’t planned some years ago to dedicate investment on improving the graphics stack ? I wonder why i still have to write draw methods with each corner of the rectangle individually instead of being able to pass a Points and Rectangles.

Any plan on making these APIs more flexible ?

Which methods are you referring to? I’m looking within juce_GraphicsContext and at least those are all ok.

Some methods are missing overloads drawImageWithin miss Rectangle<> ones, draw*Text miss float versions and Rectangle, drawImageAt miss Point<> and float, and i can go on forever. Zero consistency, and this class has been around for nearly 2 decades.

2 Likes