Skip to content

Implementation of the GDI+ API on top of NanoVG, targeting Microsoft Flight Simulator

Notifications You must be signed in to change notification settings

AsoboStudio/wasm-gdiplus

Repository files navigation

WebAssembly GDI+ for Microsoft Flight Simulator 2020

Implementation of the GDI+ API as a wrapper of NanoVG, targeting WebAssembly for Microsoft Flight Simulator 2020. The version of NanoVG in term uses the Low Level Vector Graphics API (LLVG) provided by Microsoft Flight Simulator 2020.

Setup Instructions

This project is a mirror of the project present in the SDK for Microsoft Flight Simulator 2020 (SDK).

Branches

  • master : current development branch, changes in this branch will be available in the next SDK release
  • stable : the version of GDI+ provided with the live version of the SDK

Status

This library provides minimal implementation of legacy functionality commonly used in the creation of Microsoft Flight Simulator X (FSX) instruments.

General status:

  • General draw functions: supported
  • Paths and figures: supported
  • Non rectangular clipping: supported
  • Fonts: supported via stb
  • Bitmaps: supported with limitations (performance limited by the WebAssembly sandboxing, requires game changes of LLVG)
  • String parameters: wchar* only
  • Path gradient: not supported
  • Texture brush: not supported
  • Render textures: not supported (requires game-side changes of LLVG)

Missing functionality:

  • GdipMeasureString() not implemented
  • Custom Arrow and Pen caps not implemented

Acknowledgements

This GDI+ implementation is based on:

About

Implementation of the GDI+ API on top of NanoVG, targeting Microsoft Flight Simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published