diff options
author | Istvan <istvan.miklos@h-lab.eu> | 2020-03-27 15:56:19 +0100 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2020-04-07 15:01:39 -0400 |
commit | 62f00df79d8945e43c42a6100d87faefa1aa04e0 (patch) | |
tree | 81240c9653149649eb1dd40b90c7dc4da18d73e7 /components/script/dom/webglvertexarrayobjectoes.rs | |
parent | 5a26190fc9cb4b5ff3f4bf57cf1a88243c732e9e (diff) | |
download | servo-62f00df79d8945e43c42a6100d87faefa1aa04e0.tar.gz servo-62f00df79d8945e43c42a6100d87faefa1aa04e0.zip |
Add initial support for VertexAttribI4*, VertexAttribIPointer
Adds initial support for the WebGL2 `VertexAttribI4i`, `VertexAttribI4iv`, `VertexAttribI4ui`, `VertexAttribI4uiv` and `VertexAttribIPointer` calls.
Diffstat (limited to 'components/script/dom/webglvertexarrayobjectoes.rs')
-rw-r--r-- | components/script/dom/webglvertexarrayobjectoes.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/webglvertexarrayobjectoes.rs b/components/script/dom/webglvertexarrayobjectoes.rs index a3861c50110..f10c10d949b 100644 --- a/components/script/dom/webglvertexarrayobjectoes.rs +++ b/components/script/dom/webglvertexarrayobjectoes.rs @@ -61,6 +61,10 @@ impl WebGLVertexArrayObjectOES { self.array_object.get_vertex_attrib(index) } + pub fn set_vertex_attrib_type(&self, index: u32, type_: u32) { + self.array_object.set_vertex_attrib_type(index, type_); + } + pub fn vertex_attrib_pointer( &self, index: u32, |