turbobadger icon indicating copy to clipboard operation
turbobadger copied to clipboard

Dawing custom shapes

Open sabotage3d opened this issue 9 years ago • 2 comments
trafficstars

Hi I am new to turbo badger. I am really impressed with the quality of the library so far. It might be a silly question but I can see only TBRect and PaintRect to draw rectangles is there a way of dawing a custom shape for example a circle?

sabotage3d avatar Sep 22 '16 23:09 sabotage3d

Take a look at the shape-rasterizer-3 branch and the fonty skin, it might be of interest to you.

codecat avatar Sep 23 '16 07:09 codecat

You can always render-to-texture for stuff like this. I'm doing this e.g. in OnProcess and just render the resulting image in OnPaint for my custom widgets

mgerhardy avatar Nov 15 '16 07:11 mgerhardy