Skip to content

Latest commit

 

History

History

desktop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Luminance examples desktop implementation

This directory holds the desktop implementation of the examples.

Quick start

Nothing specific to do, just run cargo run -- -l in examples/desktop to build the examples and list all the available examples you can run. An example is run by giving its name to the built binary, like so:

cargo run hello-world

Some examples have features, such as loading textures. Those require a special argument to be passed when run: the -t argument for textures, for instance:

cargo run -- -t /tmp/texture-test displacement-map

For examples using textures, it is highly recommended to compile in --release mode:

cargo run --release -- -t /tmp/texture-test displacement-map