|
openwallpaper
|
Repository contains some small scenes that demonstrate OpenWallpaper API usage.
To build examples yourself, you will need to install:
Clone the repository:
Build examples, specifying the path to WASM C compiler in WASM_CC environment variable:
Each script writes scene.wasm and generated assets to a scene directory in the corresponding example directory. Run an example with:
Draws a triangle in the center of the screen, classic example of graphics API usage. You can see an explanation of how this code works in Drawing a triangle developer guide section.
Demonstrates how to run shader wallpapers (e.g. from ShaderToy) in OpenWallpaper. Shader that was ported is Singularity by @XorDev.
Draws a static image, simplest example of texture rendering. Original image is Scarlett Tree from KDE Plasma 6 artwork.
Draws particles to create a rain-like effect. An example of using instanced rendering to draw a lot of similar objects efficiently.
Example of using ow_get_audio_spectrum to visualize audio. It gets spectrum data and draws it as white bars on the screen, without any preprocessing.