mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
webgl: Refactor implementation to move logic inside the DOM interfaces
This improves the encapsulation and consistency in our WebGL implementation. Also allows to implement new methods such as `getShaderSource()`. It will also allow us to use `delete()` in the destructors of them (note that we will want to keep track of them from the context).
This commit is contained in:
parent
c022262826
commit
b1765c6882
11 changed files with 452 additions and 130 deletions
|
@ -569,7 +569,7 @@ interface WebGLRenderingContextBase
|
|||
//WebGLShaderPrecisionFormat? getShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype);
|
||||
DOMString? getShaderInfoLog(WebGLShader? shader);
|
||||
|
||||
//DOMString? getShaderSource(WebGLShader? shader);
|
||||
DOMString? getShaderSource(WebGLShader? shader);
|
||||
|
||||
//any getTexParameter(GLenum target, GLenum pname);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue