diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-06-09 10:06:37 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-06-09 10:06:37 -0500 |
commit | e09c555a41b0803388e54013ac8885fb789a0fa6 (patch) | |
tree | 7d6942965d1c8d9cbb03027974310e956701b413 /components/canvas/lib.rs | |
parent | 1c636dd2d0c254e694db0353d4da6aba132763d4 (diff) | |
parent | 9f94d39c9e3f1b19c5b87b367742307230b55582 (diff) | |
download | servo-e09c555a41b0803388e54013ac8885fb789a0fa6.tar.gz servo-e09c555a41b0803388e54013ac8885fb789a0fa6.zip |
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 -->
Diffstat (limited to 'components/canvas/lib.rs')
-rw-r--r-- | components/canvas/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/canvas/lib.rs b/components/canvas/lib.rs index 3cfe0b606e4..16ced51b402 100644 --- a/components/canvas/lib.rs +++ b/components/canvas/lib.rs @@ -5,6 +5,7 @@ #![feature(core)] #![feature(collections)] +extern crate core; extern crate canvas_traits; extern crate azure; extern crate cssparser; |