Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new WebGL interfaces and methods #6293

Merged
merged 1 commit into from Jun 9, 2015
Merged

Commits on Jun 6, 2015

  1. Implement new WebGL interfaces and methods

    This commit implements:
    * WebGLFramebuffer
    * WebGLRenderbuffer
    * WebGLTexture
    
    And adds the following methods to `WebGLRenderingContext`:
    * create{Texture,Framebuffer,Renderbuffer}
    * bind{Texture,Framebuffer,Renderbuffer}
    * destroy{Buffer,Texture,Framebuffer,Renderbuffer}
    
    Fixes:
    * WebGLUniform location shouldn't inherit from WebGLObject.
    
    Known Issues:
    * WebGL objects have to be destroyed on drop, we may want to keep a reference to the context, or maybe a clone of the renderer to achieve this
    
    Also refactors a huge part of the current implementation, to allow
    failing on creation of different WebGL objects.
    
    Blocked on servo/gleam#22
    
    A reftest for most of the added functionality is not doable right now,
    we need a few more functions in order to upload a texture, for example.
    emilio committed Jun 6, 2015
You can’t perform that action at this time.