mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
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 -->
24 lines
584 B
Rust
24 lines
584 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#![feature(core)]
|
|
#![feature(collections)]
|
|
|
|
extern crate core;
|
|
extern crate canvas_traits;
|
|
extern crate azure;
|
|
extern crate cssparser;
|
|
extern crate geom;
|
|
extern crate gfx_traits;
|
|
extern crate util;
|
|
extern crate gleam;
|
|
extern crate num;
|
|
extern crate layers;
|
|
extern crate offscreen_gl_context;
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
|
|
pub mod canvas_paint_task;
|
|
pub mod webgl_paint_task;
|