qmetrics.net

TGFX

Lightweight cross-platform GPU 2D graphics library

TGFX screenshot

TGFX (Tencent Graphics) renders text, images, and vector content on modern GPUs across mobile, desktop, and Web targets. It was built as PAG’s default engine and targets a smaller binary than comparable engines.

Overview

TGFX is a lightweight 2D graphics library oriented toward GPU-backed rendering of text, bitmaps, and vector artwork. It is designed to run on iOS, Android, macOS, Windows, Linux, OpenHarmony, and Web browsers, and can be embedded in products such as PAG, Hippy, Tencent Docs, and video editing apps.

Rendering backends include OpenGL, OpenGL ES, WebGL, Vulkan, WebGPU, and in-progress Metal support. The website describes coverage for bitmaps, vectors, text, blend modes, filters, picture recording, PDF, SVG, wide-gamut color, and 3D transforms, with a layer module that supports display lists, dirty-region updates, and tile caching for large scene graphs.

The project ships platform demos that exercise shapes, images, and text, and documents integration paths for Android NDK, Xcode on iOS and macOS, Emscripten for WebAssembly, Linux with software GPU emulation, and Windows with Visual Studio or CLion. A unified GPU abstraction wraps Metal, Vulkan, WebGPU, and OpenGL with minimal runtime overhead.

Compared with Skia in project messaging, TGFX emphasizes a smaller core rendering footprint while aligning on many 2D features. Optional visualization tooling helps capture frames and inspect layer trees during performance work.

Key features

  • GPU text and vector rendering
  • PDF and SVG support
  • Layer display list module
  • Multiple GPU backend options
  • WebAssembly and WebGPU builds
  • Filters and blend modes
  • PAG animation engine integration
  • Cross-platform demo projects

Use cases

  • Mobile app 2D UI rendering
  • Animation playback in PAG
  • Web canvas graphics
  • Video editor graphics stacks
  • Replacing heavier 2D engines

Tags

Similar software

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app

ImGui

Minimal immediate-mode C++ graphical user interface library

Dear ImGui is a portable C++ GUI library that emits draw batches for your renderer. It targets debug tools, editors, and in-engine tooling rather than consumer-facing apps.

★ 77.3k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Anime.js

JavaScript library for web animations

Anime.js animates CSS properties, SVG, DOM attributes, and JavaScript objects through a modular ES module API for browsers and npm installs.

★ 75.1k⟳ 3 months agoMIT
Frameworks & PlatformsDesktop/CLI app

AdminLTE

Bootstrap 5 responsive admin dashboard UI template

AdminLTE is a responsive admin dashboard template on Bootstrap 5 with vanilla JavaScript, reusable components, and demo pages for back-office UIs.

★ 45.7k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

Chakra UI

Accessible modular React component system for web apps

Chakra UI is a React component system for building web applications and design systems. Components emphasize accessibility and work with modern React frameworks including Next.js.

★ 40.8k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

xyflow

Node-based UI libraries for React, Svelte, and Vue

xyflow maintains React Flow, Svelte Flow, and Vue Flow—libraries for building customizable node-based editors and interactive diagrams in those frameworks.

★ 39.2k⟳ 4 days agoMIT
Frameworks & PlatformsDesktop/CLI app