265ba2e5b3
* WIP: Render API v2 * Fix doctests * Expose all of PixelsContext (#110) * Fix ScalingRenderer::new() taking &mut Device * Replace getters with direct access to &mut PixelsContext * Fix wrong reference type * Fix unneeded mut * Remove unnecessary mutable borrow, resurrect the shorter getter methods * Initial port to wgpu master (0.6) Surface creation is broken (see examples) Does not support compressed textures * Fix SurfaceTexture and examples * Add support for compressed texture formats * resize doesn't need mutability * Update documentation * Update wgpu * Prepare release * Goodbye Travis! Thanks for all the fish Co-authored-by: JMS55 <47158642+JMS55@users.noreply.github.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
Hello Pixels
Minimal example with winit
.
Running
cargo run --release --package minimal-winit
About
This example demonstrates the absolute minimum for creating a winit
window and pixel buffer. It animates a purple box moving on a blue background, just for something interesting to display.
It uses winit_input_helper
to provide a slightly better code presentation, but it doesn't greatly reduce the number of lines in the example.