ThorVG 0.15

ThorVG 0.15

Pas tri muajsh punë të palodhshme, u publikua versioni 0.15 i bibliotekës së grafikës vektoriale ThorVG, e shkruar në gjuhën C++ (standard C++14) dhe e shpërndarë nën licencën MIT. Biblioteka përdoret për renderimin e grafikës vektoriale në projekte si Tizen OS, Godot Engine, LVGL dhe lojtarë dotLottie.

Grafika Vektoriale Thor (ThorVG) – Ă«shtĂ« njĂ« bibliotekĂ« e lehtĂ« dhe portative me kod tĂ« hapur, e cila Ă«shtĂ« e destinuar pĂ«r vizualizimin e skenave vektoriale dhe animacioneve, duke pĂ«rfshirĂ« formate tĂ« tilla si SVG Tiny 1.2, Lottie dhe formati i saj i vetĂ«mtĂ« TVG (SVG, i kompresuar me algoritmin LZW).

Biblioteka ofron API të lehta për përdorim për importimin, krijimin dhe shfaqjen e grafikës vektoriale, si dhe për eksportimin e saj në formate të ndryshme grafike, duke e bërë atë universale për përdorim në platforma të ndryshme softuerike dhe aplikacione për vizualizimin e përmbajtjeve grafike:

#include "Example.h" using namespace std; void exportGif() { auto animation = tvg::Animation::gen(); auto picture = animation->picture(); if (!tvgexam::verify(picture->load(EXAMPLE_DIR"/lottie/walker.json"))) return; picture->size(800, 800); auto saver = tvg::Saver::gen(); if (!tvgexam::verify(saver->save(std::move(animation), "./test.gif"))) return; saver->sync(); cout << "Successfully exported to test.gif." << endl; } int main(int argc, char **argv) { if (tvgexam::verify(tvg::Initializer::init(0))) { exportGif(); tvg::Initializer::term(); } return 0; }

Me bibliotekën rastisnin edhe mjete si lottie2gif, svg2png dhe svg2tvg.

Versioni i ri përfshin një sërë përmirësimesh të rëndësishme:

  • performancĂ«, funksionalitet dhe stabilitet tĂ« pĂ«rmirĂ«suara ndjeshĂ«m tĂ« motorit WebGPU;
  • njĂ« rritje afĂ«r trefishit nĂ« performancĂ«n e renderimit tĂ« linjave;
  • ka increased performance of masking and various overlay methods;
  • significantly reduced GPU memory load;
  • added support for clipping paths and controlling visible screen areas;
  • significantly improved Lottie animation implementation;
  • the biggest addition in ThorVG is support for layers in Lottie animations;
  • interactive capabilities added in Lottie animations;
  • text animation improved;
  • the algorithm for calculating control points for offset Bezier curves has been enhanced;
  • added the ability to apply various post-processing effects to the scene;
  • support for composite text glyphs has been added;
  • composition performance improved in OpenGL engine;
  • new stable and experimental APIs added;
  • many bugs fixed.

Burimi: linux.org.ru

Bli njĂ« hosting tĂ« besueshĂ«m pĂ«r faqet me mbrojtje DDoS, VPS VDS serverĂ« đŸ”„ Bli njĂ« hosting tĂ« besueshĂ«m pĂ«r faqet me mbrojtje DDoS, VPS VDS serverĂ« | ProHoster