Add sample rendering #2

Open
noteuclid wants to merge 5 commits from sample into master
3 changed files with 3 additions and 0 deletions
Showing only changes of commit 02707dd095 - Show all commits

View File

@ -4,6 +4,8 @@ This example combines Qt6 GUI (C++) with WGPU rendering (Rust). It doesnt do
Currently only X11 (XCB) is supported but it should be easy to extend to other platforms. Currently only X11 (XCB) is supported but it should be easy to extend to other platforms.
![Screenshot](screenshot.png)
## Usage ## Usage
This program is intended as a starting point rather than a dependency, so just copy it. This program is intended as a starting point rather than a dependency, so just copy it.

View File

@ -56,6 +56,7 @@ git rm -r skel-test
# replace the README with a stub # replace the README with a stub
echo "# $name" >| README.md echo "# $name" >| README.md
git rm screenshot.png
# escape HTML special characters (&, <, and >), but also sed special characters (& again, \, and /) # escape HTML special characters (&, <, and >), but also sed special characters (& again, \, and /)
htmlname=$(echo -n "$name" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s:[\\/&]:\\&:g') htmlname=$(echo -n "$name" | sed 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s:[\\/&]:\\&:g')

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB