add automatic resizing

This commit is contained in:
Magnus Ulimoen
2019-03-27 22:51:03 +01:00
parent 2c5f3cd282
commit f1018f6874
3 changed files with 42 additions and 23 deletions

View File

@@ -1,13 +1,15 @@
<!doctype html>
<!--https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context-->
<html lang="en">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="">
<head>
<title>WebGL test"</title>
<meta charset="utf-8">
<meta charset="utf-8" />
<meta name="generator" content="by-hand" />
<meta name="viewpost" context="width=device-width, inital-scale=1.0, user-scalable=yes" />
<title>WebGL test</title>
</head>
<body>
<canvas id="glCanvas" width="640" height="480"></canvas>
<canvas id="glCanvas"></canvas>
</body>
<link rel="stylesheet" type="text/css" href="style.css">
<script src="main.js"></script>
</html>