[][src]Module quicksilver::tutorials

The quicksilver tutorials, generated through Rustdoc

While this isn't a traditional way of hosting a tutorial, Rustdoc ensures that all the code in the tutorials is checked when CI runs, keeping it nice and up-to-date.

Before you jump into the tutorials below, make sure your development environment is ready. If you're just targeting desktop, all you need is the latest stable Rust. If you're targeting the web, make sure you install cargo-web first (cargo install -f cargo-web).



Our first tutorial is simple: Just create a blank window.


Creating a blank window is all well and good, but drawing something to it is even better.


Now we can draw all manner of colorful geometry, but that's not enough for an interesting application.


We've now seen the four main methods that form the Quicksilver application lifecycle: new, update, draw, and event. Before we go on, it might help to have an understanding of these methods and when exactly they get called.


Interactability might be important, but just sticking to regular shapes can get a bit boring.


Asset combinators (or in the general case, Future combinators) allow us to chain async computations together.


Armed with asset combinators and the ability to draw textures, we can now do some text rendering.


Quicksilver's sound capabilities are currently somewhat limited: sound can be loaded and played at various volumes.


When image loading and asset combinators are combined, we can go from loading a simple image and drawing it to the screen to more complex uses of image files, like spritesheets or texture atlases.


Quicksilver uses the View structure as an abstraction for both graphical and input projection.


A Mesh is a low-level graphics concept in Quicksilver consisting of a series of polygon vertices and a list of triangles.