forked from GeertArien/learnopengl-examples
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
333 changed files
with
8,353 additions
and
8,519 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,91 +1,89 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<title>1-3-1-rendering</title> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<style type="text/css"> | ||
body { | ||
margin: 0; | ||
background-color: black; | ||
} | ||
.game-title { | ||
pointer-events: none; | ||
position: absolute; | ||
bottom: 10px; | ||
margin-top: 0px; | ||
padding-left: 10px; | ||
color: white; | ||
text-decoration: none; | ||
z-index: 1; | ||
text-align: left; | ||
font-family: "Arial Black", Gadget, sans-serif; | ||
font-size: 30px; | ||
} | ||
.game-menu-item { | ||
pointer-events: auto; | ||
font-size: 18px; | ||
padding-left: 10px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
.game-menu-link { | ||
text-decoration: none; | ||
color: white; | ||
} | ||
.game { | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
margin: 0px; | ||
border: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
display: block; | ||
image-rendering: optimizeSpeed; | ||
image-rendering: -moz-crisp-edges; | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; | ||
image-rendering: optimize-contrast; | ||
image-rendering: crisp-edges; | ||
image-rendering: pixelated; | ||
-ms-interpolation-mode: nearest-neighbor; | ||
} | ||
</style> | ||
</head> | ||
<body style="background:black"> | ||
<div class="game-title">1-3-1-rendering | ||
<span class="game-menu-item"><a class="game-menu-link" href="index.html">home</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-3-hello-window/1-rendering.c" target="_blank">src</a></span> | ||
<span hidden class="game-menu-item"><a class="game-menu-link" href="." target="_blank">glsl</a></span> | ||
</div> | ||
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault()"></canvas> | ||
<script type="text/javascript"> | ||
var Module = { | ||
preRun: [], | ||
postRun: [], | ||
print: (function() { | ||
return function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.log(text); | ||
}; | ||
})(), | ||
printErr: function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.error(text); | ||
}, | ||
canvas: (function() { | ||
var canvas = document.getElementById('canvas'); | ||
canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false); | ||
return canvas; | ||
})(), | ||
setStatus: function(text) { }, | ||
monitorRunDependencies: function(left) { }, | ||
}; | ||
window.onerror = function(event) { | ||
console.log("onerror: " + event.message); | ||
}; | ||
</script> | ||
<script async type="text/javascript" src="1-3-1.js"></script> | ||
</body> | ||
</html> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<title>1-3-1-rendering</title> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<style type="text/css"> | ||
body { | ||
margin: 0; | ||
background-color: #212529; | ||
} | ||
.game-title { | ||
pointer-events: none; | ||
position: absolute; | ||
bottom: 10px; | ||
margin-top: 0px; | ||
padding-left: 10px; | ||
color: white; | ||
text-decoration: none; | ||
z-index: 1; | ||
text-align: left; | ||
font-family: "Arial Black", Gadget, sans-serif; | ||
font-size: 30px; | ||
} | ||
.game-menu-item { | ||
pointer-events: auto; | ||
font-size: 18px; | ||
padding-left: 10px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
.game-menu-link { | ||
text-decoration: none; | ||
color: white; | ||
} | ||
.game { | ||
border: 1px solid #495057; | ||
margin-right: auto; | ||
margin-left: auto; | ||
width: 800px; | ||
height: 600px; | ||
overflow: hidden; | ||
display: block; | ||
image-rendering: optimizeSpeed; | ||
image-rendering: -moz-crisp-edges; | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; | ||
image-rendering: optimize-contrast; | ||
image-rendering: crisp-edges; | ||
image-rendering: pixelated; | ||
-ms-interpolation-mode: nearest-neighbor; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="game-title">1-3-1-rendering | ||
<span class="game-menu-item"><a class="game-menu-link" href="index.html">home</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-3-hello-window/1-rendering.c" target="_blank">src</a></span> | ||
<span hidden class="game-menu-item"><a class="game-menu-link" href="." target="_blank">glsl</a></span> | ||
</div> | ||
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault()"></canvas> | ||
<script type="text/javascript"> | ||
var Module = { | ||
preRun: [], | ||
postRun: [], | ||
print: (function() { | ||
return function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.log(text); | ||
}; | ||
})(), | ||
printErr: function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.error(text); | ||
}, | ||
canvas: (function() { | ||
var canvas = document.getElementById('canvas'); | ||
canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false); | ||
return canvas; | ||
})(), | ||
setStatus: function(text) { }, | ||
monitorRunDependencies: function(left) { }, | ||
}; | ||
window.onerror = function(event) { | ||
console.log("onerror: " + event.message); | ||
}; | ||
</script> | ||
<script async type="text/javascript" src="1-3-1.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,91 +1,89 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<title>1-4-1-triangle</title> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<style type="text/css"> | ||
body { | ||
margin: 0; | ||
background-color: black; | ||
} | ||
.game-title { | ||
pointer-events: none; | ||
position: absolute; | ||
bottom: 10px; | ||
margin-top: 0px; | ||
padding-left: 10px; | ||
color: white; | ||
text-decoration: none; | ||
z-index: 1; | ||
text-align: left; | ||
font-family: "Arial Black", Gadget, sans-serif; | ||
font-size: 30px; | ||
} | ||
.game-menu-item { | ||
pointer-events: auto; | ||
font-size: 18px; | ||
padding-left: 10px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
.game-menu-link { | ||
text-decoration: none; | ||
color: white; | ||
} | ||
.game { | ||
position: absolute; | ||
top: 0px; | ||
left: 0px; | ||
margin: 0px; | ||
border: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
display: block; | ||
image-rendering: optimizeSpeed; | ||
image-rendering: -moz-crisp-edges; | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; | ||
image-rendering: optimize-contrast; | ||
image-rendering: crisp-edges; | ||
image-rendering: pixelated; | ||
-ms-interpolation-mode: nearest-neighbor; | ||
} | ||
</style> | ||
</head> | ||
<body style="background:black"> | ||
<div class="game-title">1-4-1-triangle | ||
<span class="game-menu-item"><a class="game-menu-link" href="index.html">home</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-4-hello-triangle/1-triangle.c" target="_blank">src</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-4-hello-triangle/1-triangle.glsl" target="_blank">glsl</a></span> | ||
</div> | ||
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault()"></canvas> | ||
<script type="text/javascript"> | ||
var Module = { | ||
preRun: [], | ||
postRun: [], | ||
print: (function() { | ||
return function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.log(text); | ||
}; | ||
})(), | ||
printErr: function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.error(text); | ||
}, | ||
canvas: (function() { | ||
var canvas = document.getElementById('canvas'); | ||
canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false); | ||
return canvas; | ||
})(), | ||
setStatus: function(text) { }, | ||
monitorRunDependencies: function(left) { }, | ||
}; | ||
window.onerror = function(event) { | ||
console.log("onerror: " + event.message); | ||
}; | ||
</script> | ||
<script async type="text/javascript" src="1-4-1.js"></script> | ||
</body> | ||
</html> | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"/> | ||
<title>1-4-1-triangle</title> | ||
<link rel="icon" type="image/png" href="favicon.png"/> | ||
<style type="text/css"> | ||
body { | ||
margin: 0; | ||
background-color: #212529; | ||
} | ||
.game-title { | ||
pointer-events: none; | ||
position: absolute; | ||
bottom: 10px; | ||
margin-top: 0px; | ||
padding-left: 10px; | ||
color: white; | ||
text-decoration: none; | ||
z-index: 1; | ||
text-align: left; | ||
font-family: "Arial Black", Gadget, sans-serif; | ||
font-size: 30px; | ||
} | ||
.game-menu-item { | ||
pointer-events: auto; | ||
font-size: 18px; | ||
padding-left: 10px; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
.game-menu-link { | ||
text-decoration: none; | ||
color: white; | ||
} | ||
.game { | ||
border: 1px solid #495057; | ||
margin-right: auto; | ||
margin-left: auto; | ||
width: 800px; | ||
height: 600px; | ||
overflow: hidden; | ||
display: block; | ||
image-rendering: optimizeSpeed; | ||
image-rendering: -moz-crisp-edges; | ||
image-rendering: -o-crisp-edges; | ||
image-rendering: -webkit-optimize-contrast; | ||
image-rendering: optimize-contrast; | ||
image-rendering: crisp-edges; | ||
image-rendering: pixelated; | ||
-ms-interpolation-mode: nearest-neighbor; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="game-title">1-4-1-triangle | ||
<span class="game-menu-item"><a class="game-menu-link" href="index.html">home</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-4-hello-triangle/1-triangle.c" target="_blank">src</a></span> | ||
<span class="game-menu-item"><a class="game-menu-link" href="https://github.com/zeromake/learnopengl-examples/tree/master/src/1-4-hello-triangle/1-triangle.glsl" target="_blank">glsl</a></span> | ||
</div> | ||
<canvas class="game" id="canvas" oncontextmenu="event.preventDefault()"></canvas> | ||
<script type="text/javascript"> | ||
var Module = { | ||
preRun: [], | ||
postRun: [], | ||
print: (function() { | ||
return function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.log(text); | ||
}; | ||
})(), | ||
printErr: function(text) { | ||
text = Array.prototype.slice.call(arguments).join(' '); | ||
console.error(text); | ||
}, | ||
canvas: (function() { | ||
var canvas = document.getElementById('canvas'); | ||
canvas.addEventListener("webglcontextlost", function(e) { alert('FIXME: WebGL context lost, please reload the page'); e.preventDefault(); }, false); | ||
return canvas; | ||
})(), | ||
setStatus: function(text) { }, | ||
monitorRunDependencies: function(left) { }, | ||
}; | ||
window.onerror = function(event) { | ||
console.log("onerror: " + event.message); | ||
}; | ||
</script> | ||
<script async type="text/javascript" src="1-4-1.js"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Oops, something went wrong.