twgpu-tools 0.4.0

Collection of tools about rendering Teeworlds and DDNet maps
Documentation

TwGpu Tools

Powered by the twgpu library!

Overview

All tools are command line argument based and explain their usage with --help.

  • twgpu-map-inspect: View rendered maps in a window
  • twgpu-map-photography: Snap pictures of maps via the command line
  • twgpu-demo-viewer: Demo player
  • twgpu-encode-demo: Encode demos to images or videos.
  • twgpu-benchmark: A silly and probably not trustworthy sprite rendering benchmark.
  • twgpu-mipmaps: Explore how mipmaps look in twgpu.

Installation

You need Rust installed on your system.

Simply do cargo install twgpu-tools --features ffmpeg

Manual Building

You need Rust installed on your system.

To compile the tools in release mode, execute the following command in this directory:

cargo build --release --features ffmpeg

The executable files will be located in the project/workspace root in target/release/.

To compile the debug build instead, omit the --release flag. Note that debug binaries will be significantly slower. The executable files of debug builds will be located in target/debug/.

Trouble Building: Build Errors with FFmpeg?

You need to install FFmpeg on your system. If you have trouble doing so, leave out the --features ffmpeg. Note that twgpu-encode-demo won't be able to encode videos in that case.