-
Hi everyone ! As I plan to build a custom component for a Chess Board in KAS, I am wondering :
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
The current draw APIs are quite basic unfortunately. Your best bet might be to use multiple widgets (one for the SVG, another for other draw operations around that). Or to copy the |
Beta Was this translation helpful? Give feedback.
-
Thank you very much 😃 I think I'll go for the multiple widgets solutions, and so, I'll try to set several widgets one above others (like the z-axis in CSS's World)
So I need to use at least 2 layouts
|
Beta Was this translation helpful? Give feedback.
ImageId
is basically just a handle to a texture region (seeDrawShared
).The existing
Svg
widget is just some code around resvg libraries to allocate and draw to a texture.The current draw APIs are quite basic unfortunately. Your best bet might be to use multiple widgets (one for the SVG, another for other draw operations around that). Or to copy the
Svg
code into your own widget.