fruxo / turbobadger

Small footprint UI library for hardware accelerated games & applications
582 stars 85 forks source link

Dawing custom shapes #99

Open sabotage3d opened 8 years ago

sabotage3d commented 8 years ago

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?

codecat commented 8 years ago

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

mgerhardy commented 8 years ago

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