Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Another batch of core Gles binding improvements. #13

Merged
merged 11 commits into from

2 participants

@cscott

This is the next batch of improvements to the Gles core to enable the WebGL emulation we're working on.

cscott added some commits
@cscott cscott Add 'read' built-in to get file contents as a string. 7b06957
@cscott cscott Handle Typed Array arguments to the Gles.bufferData method. 530e135
@cscott cscott Improve error checking in glesbind.cpp.
Throw an exception if arguments are bad, instead of silently ignoring
the requested GL command.
ec4661c
@cscott cscott Accept additional parameters to vertexAttribPointer().
Accept 'offset' parameter to vertexAttribPointer.
Accept JavaScript boolean for 'normalized' parameter.
622041e
@cscott cscott Import v8-typed-array from https://github.com/cscott/v8-gl. 7cf4523
@cscott cscott Hook up v8-typed-array to v8-gl. ef34aef
@cscott cscott Set root path to reflect the current javascript file when using load().
This helps us use consistent relative paths in library code.
7602942
@cscott cscott Update Gles.getParameter() switch statement to match WebGL spec.
Added a few missing cases, and used 'unsigned' return types where WebGL
wants us to.
db87cac
@cscott cscott Allow Gles.depthMask() to take a JavaScript boolean as well as GL_TRU…
…E/GL_FALSE.
f8154ca
@cscott cscott Update Gles.uniform*fv and Gles.uniformMatrix*fv to match WebGL proto…
…type.

WebGL removes the 'length' field, preferring to infer the length from the
size of the array parameter.  We also accept Typed Array arguments as well.
968abd7
@cscott cscott Accept TypedArray argument to Gles.texImage2D(). c58afc4
@philogb
Owner

Thanks @cscott ! It was great meeting you at WebGLCamp today :)

@philogb philogb merged commit 157c113 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 8, 2011
  1. @cscott
  2. @cscott
  3. @cscott

    Improve error checking in glesbind.cpp.

    cscott authored
    Throw an exception if arguments are bad, instead of silently ignoring
    the requested GL command.
  4. @cscott

    Accept additional parameters to vertexAttribPointer().

    cscott authored
    Accept 'offset' parameter to vertexAttribPointer.
    Accept JavaScript boolean for 'normalized' parameter.
  5. @cscott
  6. @cscott
  7. @cscott

    Set root path to reflect the current javascript file when using load().

    cscott authored
    This helps us use consistent relative paths in library code.
  8. @cscott

    Update Gles.getParameter() switch statement to match WebGL spec.

    cscott authored
    Added a few missing cases, and used 'unsigned' return types where WebGL
    wants us to.
  9. @cscott
  10. @cscott

    Update Gles.uniform*fv and Gles.uniformMatrix*fv to match WebGL proto…

    cscott authored
    …type.
    
    WebGL removes the 'length' field, preferring to infer the length from the
    size of the array parameter.  We also accept Typed Array arguments as well.
  11. @cscott
Something went wrong with that request. Please try again.