#render #applications #game #management #rendering #window #swamp

swamp-app

Application management for 2D pixel perfect sprite rendering

9 releases

new 0.0.9 Nov 4, 2024
0.0.8 Nov 3, 2024

#1890 in Game dev

Download history 368/week @ 2024-10-28

368 downloads per month
Used in swamp-app-examples

MIT license

63KB
1.5K 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.9"

License

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

Dependencies

~8–42MB
~694K SLoC