If use custom class for textures to store all pointers, id, name, gabage collector will not delete instances of such class and pointers will be not affected. Or I didnt understend the issue? Some day I will lean how to load textured mesh with C# Now only theory
Maybe anyone knows, how to use antialiasing with Silky.Nvg? The heart image - it is the PNG texture which is 1000px in size, but rendered on screen in small size 100px and has visible jagged edges.
Found soulution fir Unity, and it said - use custom shader some kind of “alpha-cut off” for displaying UI, similar like shaders for transparent hairs. But this it too complicated, for person who barely knows how to load image
Just for “science” - Silky.Nvg is a wrpapper? Not real library? I cant modify how things rendered? For example add some effects using shaders from examples.
Repeated my experiment with fresh head, and this works: nvg.CreateImage(Src, ImageFlags.GenerateMimpas);nvg.CreateImage(Src, ImageFlags.GenerateMimpas); Image has dark border, but not pixelated.
I tested with Photoshop, resized image to 100px - and pixelated effect gone. Image displayed ok with default "0" flag. So it was just an issue with image loading. For the average user this is out of logic, we're expecting bigger images will look better.