diff options
author | Jon Santmyer <jon@jonsantmyer.com> | 2021-12-29 12:11:44 -0500 |
---|---|---|
committer | Jon Santmyer <jon@jonsantmyer.com> | 2021-12-29 12:11:44 -0500 |
commit | d574b18884401d2a0a1f8d4422c1512de3dcbee6 (patch) | |
tree | f08466db076564aae7bfa685a9a733bfc20c3dd7 /blockgame/mesh.js | |
parent | 9acfb6bfffc31e39dfb273f870a2235e5968ffc9 (diff) | |
download | website-d574b18884401d2a0a1f8d4422c1512de3dcbee6.tar.gz website-d574b18884401d2a0a1f8d4422c1512de3dcbee6.tar.bz2 website-d574b18884401d2a0a1f8d4422c1512de3dcbee6.zip |
Change style for better readability.
style.css overhaul, now resembles windows 3.1 UI.
slight change to intro text.
reposition buttons to right edge.
projects box.
diheap project summary and download page.
Diffstat (limited to 'blockgame/mesh.js')
-rw-r--r-- | blockgame/mesh.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/blockgame/mesh.js b/blockgame/mesh.js deleted file mode 100644 index 0e39fd0..0000000 --- a/blockgame/mesh.js +++ /dev/null @@ -1,24 +0,0 @@ - -export class Mesh { - constructor(gl, dims) { - this.posbuffer = gl.createBuffer(); - this.dimensions = dims; - } - - add_positions(gl, positions) { - gl.bindBuffer(gl.ARRAY_BUFFER, this.posbuffer); - gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(positions), gl.STATIC_DRAW); - } - - addattrib(gl, shader, buffer, components, type, normalized, stride, offset) { - gl.bindBuffer(gl.ARRAY_BUFFER, buffer); - gl.vertexAttribPointer( - shader.attribs.position, - components, - type, - normalized, - stride, - offset); - gl.enableVertexAttribArray(shader.attribs.position); - } -} |