d2dlib
d2dlib copied to clipboard
Cached TextBrush and FontFormat for Measure & Draw Text
Add D2DSolidColorTextBrush object and interface + extend MeasureText with D2DFontFormat fontFormat and D2DTextLayout textLayout + update Sample/MeasureAndDrawString + update FPS meter algorithm
MeasureAndDrawString yield 2x performance gain using cached SolidColorTextBrush and FontFormat.
@Softwaretom007 Thank you very much!
Added more functionality (string layout, text antialiasing setup, optimized draw & fill rectangle and drawing unconnected lines - from array of points).
Very appreciate it!