2 unstable releases

0.2.0 Aug 2, 2022
0.1.0 May 22, 2022

#528 in Graphics APIs


Used in twgpu-tools

AGPL-3.0-only

90KB
2K SLoC

TwMap

Render Teeworlds and DDNet maps anywhere!

This library is written with wgpu, which runs natively on its backends Vulkan, DirectX, Metal, OpenGL and WebGL.

Usage

  • Add twgpu = 0.1.0 in your Cargo.toml
  • Check out the docs

Features

  • Map rendering is fully implemented
  • Tilemap rendering is done with a different method that allows rendering them with the same speed on every zoom level. The render speed depends on the amount of pixels, however tilemaps that don't cover the whole map are optimized

Limitations

  • There is no mipmap support as of yet, this means that there are noticable visual artifacts when zooming out
  • Tilemaps are uploaded to the gpu as textures, they can't be bigger than the maximum texture size in that context

Upcoming

  • I have plans to implement mipmaps and rendering of more parts of Teeworlds/DDNet

lib.rs:

This crate provides a middleware library for Teeworlds and DDNet rendering.

Dependencies

~20–34MB
~338K SLoC