- 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.
推薦閱讀
- 24小時學會電腦組裝與維護
- 零點起飛學Xilinx FPG
- Android NDK Game Development Cookbook
- 基于Proteus和Keil的C51程序設計項目教程(第2版):理論、仿真、實踐相融合
- SDL Game Development
- 精選單片機設計與制作30例(第2版)
- Manage Partitions with GParted How-to
- 從零開始學51單片機C語言
- 分布式系統與一致性
- 微服務分布式架構基礎與實戰:基于Spring Boot + Spring Cloud
- 單片機系統設計與開發教程
- 超大流量分布式系統架構解決方案:人人都是架構師2.0
- 無蘋果不生活:OS X Mountain Lion 隨身寶典
- 數字媒體專業英語(第2版)
- The Artificial Intelligence Infrastructure Workshop