aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-05-23 00:47:49 -0400
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-05-23 01:00:53 -0400
commit9a245c78e933305f20a725c6761dd86fc144d94f (patch)
treee1958235b9a6db93dee6472b9066411f21370588
parentb7ce870dd4b1352e308e212e77cd6161c1ec904e (diff)
Stub a few more gl functions
These are useful for fog implementation, which we can look into implementing in the future.
-rw-r--r--src/library_gl.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index b5d65ee6..3eba76d0 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1828,11 +1828,17 @@ var LibraryGL = {
},
glFogf: function(){}, // TODO
+ glFogi: function(){}, // TODO
+ glFogx: function(){}, // TODO
+ glFogfv: function(){}, // TODO
glPolygonMode: function(){}, // TODO
glAlphaFunc: function(){}, // TODO
+ glNormal3f: function(){}, // TODO
+
+
// ClientState/gl*Pointer
glEnableClientState: function(cap, disable) {
@@ -2040,7 +2046,7 @@ var LibraryGL = {
};
// Simple pass-through functions. Starred ones have return values. [X] ones have X in the C name but not in the JS name
-[[0, 'shadeModel fogi fogfv getError* finish flush'],
+[[0, 'shadeModel getError* finish flush'],
[1, 'clearDepth clearDepth[f] depthFunc enable disable frontFace cullFace clear enableVertexAttribArray disableVertexAttribArray lineWidth clearStencil depthMask stencilMask checkFramebufferStatus* generateMipmap activeTexture blendEquation polygonOffset sampleCoverage isEnabled*'],
[2, 'blendFunc blendEquationSeparate depthRange depthRange[f] stencilMaskSeparate hint'],
[3, 'texParameteri texParameterf drawArrays vertexAttrib2f stencilFunc stencilOp'],