- Hands-On Game Development with WebAssembly
- Rick Battagline
- 133字
- 2021-06-24 13:41:04
Minor tweaks to the head tag
Inside of our head tag, we will want to change title, and because we renamed canvas.css to webgl.css, we will need to point our link tag to the new stylesheet name. Here are the only two tags that must change at the beginning of the HTML:
<title>WebGL Shell</title>
<link href="webgl.css" rel="stylesheet" type="text/css">
Later in the HTML, we will remove the img tag where the src is set to "spaceship.png". It is not strictly necessary to do this. In the canvas version, we were using this tag to render an image to the canvas. In this WebGL version, we will load the image dynamically, so it is not necessary to keep it around, but if you forget to remove it, having it there will not harm the app in any way.
推薦閱讀
- Arduino入門基礎教程
- Windows phone 7.5 application development with F#
- 數字道路技術架構與建設指南
- 計算機應用與維護基礎教程
- 深入淺出SSD:固態(tài)存儲核心技術、原理與實戰(zhàn)(第2版)
- 平衡掌控者:游戲數值經濟設計
- 計算機維修與維護技術速成
- The Deep Learning with Keras Workshop
- 基于Proteus仿真的51單片機應用
- 超大流量分布式系統(tǒng)架構解決方案:人人都是架構師2.0
- 單片機開發(fā)與典型工程項目實例詳解
- Istio服務網格技術解析與實踐
- USB應用分析精粹:從設備硬件、固件到主機端程序設計
- USB應用開發(fā)寶典
- 快·易·通:2天學會電腦組裝·系統(tǒng)安裝·日常維護與故障排除