[][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).

Modules

_01_basic

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

_02_drawing

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

_03_input

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

_04_lifecycle

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.

_05_images

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

_06_asset_combinators

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

_07_font

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

_08_sound

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

_09_animations_and_atlases

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.

_10_views

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

_11_mesh

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