forked from hecrj/wgpu_glyph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provided example to reproduce hecrj#78
- Loading branch information
1 parent
cd6f154
commit b61f425
Showing
4 changed files
with
113 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
/target | ||
**/*.rs.bk | ||
Cargo.lock | ||
Cargo.lock | ||
|
||
*.wasm | ||
*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | ||
<title>wgpu_glyph hello</title> | ||
</head> | ||
<body> | ||
<canvas id="iced_canvas"></canvas> | ||
<script type="module"> | ||
import init from "./hello.js"; | ||
init('./hello_bg.wasm'); | ||
</script> | ||
<style> | ||
body { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
</style> | ||
</body> | ||
</html> |