mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Updated README to run example with feature if needed
This commit is contained in:
@@ -293,7 +293,11 @@ We have several simple example projects included:
|
||||
|
||||
> cargo run --example demo
|
||||
|
||||
You can see the full list in the `examples/` folder
|
||||
You can see the full list in the `examples/` folder. Some examples require some features, you can enable them like so:
|
||||
|
||||
> cargo run --example gfx-demo --features "gfx"
|
||||
|
||||
Replace "gfx" by the feature(s) needed for the example you want.
|
||||
|
||||
# OpenGL
|
||||
|
||||
|
||||
Reference in New Issue
Block a user