servo/components/canvas
bors-servo e09c555a41 Auto merge of #6293 - ecoal95:webgl-objects, r=nox
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 https://github.com/servo/gleam/pull/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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6293)
<!-- Reviewable:end -->
2015-06-09 10:06:37 -05:00
..
canvas_paint_task.rs Turn off default antialiasing for most DrawOptions. 2015-05-28 18:42:16 +02:00
Cargo.toml Use the correct log crate and setup env_logger in main. 2015-06-06 23:20:40 +03:00
lib.rs Auto merge of #6293 - ecoal95:webgl-objects, r=nox 2015-06-09 10:06:37 -05:00
webgl_paint_task.rs Implement new WebGL interfaces and methods 2015-06-06 12:14:01 +02:00