#applications #game #render #management #rendering #swamp #initialization

swamp-app

Application management for 2D pixel perfect sprite rendering

10 releases

0.0.10 Nov 14, 2024
0.0.9 Nov 4, 2024

#2224 in Game dev

Download history 306/week @ 2024-10-28 276/week @ 2024-11-04 193/week @ 2024-11-11 46/week @ 2024-11-18 31/week @ 2024-11-25 36/week @ 2024-12-02 74/week @ 2024-12-09

195 downloads per month
Used in 11 crates (10 directly)

MIT license

59KB
1K SLoC

swamp-app 🐊

Crates.io Documentation

Swamp App is a Rust crate that provides a high-level abstraction for creating and managing game applications using winit and wgpu. It leverages the power of swamp-wgpu-window and swamp-render to handle window creation, rendering surfaces, and the application lifecycle. By implementing the Application trait, developers can focus on application logic without worrying about the underlying rendering and window management details.

✨ Features

  • Simplified Window Management: Easily create and manage application windows using swamp-wgpu-window.
  • Rendering Abstraction: Utilize swamp-render for efficient sprite-based rendering with minimal setup.
  • Application Lifecycle Management: Implement the Application trait to handle initialization, ticking, and rendering seamlessly.
  • Async Support: Leverage asynchronous initialization for smooth and non-blocking application setup.
  • Cross-Platform Compatibility: Works across all major operating systems supported by winit and wgpu.

📦 Installation

Add swamp-app to your project’s Cargo.toml:

[dependencies]
swamp-app = "0.0.10"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~0.5–1MB
~21K SLoC