jdryg / vg-renderer

A vector graphics renderer for bgfx, based on ideas from NanoVG and ImDrawList (Dear ImGUI)
BSD 2-Clause "Simplified" License
503 stars 55 forks source link

vg::textBox() broken #13

Closed hugoam closed 4 years ago

hugoam commented 5 years ago

vg::textBox() implementation doesn't match it's declaration anymore so you get link error if you use that function. Quickest fix I is changing the declaration in vg.h to (also defaulted to not break the API, but who cares :) ) :

void textBox(Context* ctx, const TextConfig& cfg, float x, float y, float breakWidth, const char* text, const char* end, uint32_t flags = 0U);
jdryg commented 5 years ago

Should be fixed. I don't use those functions in my project that's why I missed it for so long (only use clXXX functions). Thanks!