web_sys/features/
gen_OesVertexArrayObject.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OES_vertex_array_object" , typescript_type = "OES_vertex_array_object")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `OesVertexArrayObject` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"]
14 pub type OesVertexArrayObject;
15 #[cfg(feature = "WebGlVertexArrayObject")]
16 #[wasm_bindgen(
17 method,
18 js_class = "OES_vertex_array_object",
19 js_name = "bindVertexArrayOES"
20 )]
21 #[doc = "The `bindVertexArrayOES()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"]
26 pub fn bind_vertex_array_oes(
27 this: &OesVertexArrayObject,
28 array_object: Option<&WebGlVertexArrayObject>,
29 );
30 #[cfg(feature = "WebGlVertexArrayObject")]
31 #[wasm_bindgen(
32 method,
33 js_class = "OES_vertex_array_object",
34 js_name = "createVertexArrayOES"
35 )]
36 #[doc = "The `createVertexArrayOES()` method."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"]
41 pub fn create_vertex_array_oes(this: &OesVertexArrayObject) -> Option<WebGlVertexArrayObject>;
42 #[cfg(feature = "WebGlVertexArrayObject")]
43 #[wasm_bindgen(
44 method,
45 js_class = "OES_vertex_array_object",
46 js_name = "deleteVertexArrayOES"
47 )]
48 #[doc = "The `deleteVertexArrayOES()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"]
53 pub fn delete_vertex_array_oes(
54 this: &OesVertexArrayObject,
55 array_object: Option<&WebGlVertexArrayObject>,
56 );
57 #[cfg(feature = "WebGlVertexArrayObject")]
58 #[wasm_bindgen(
59 method,
60 js_class = "OES_vertex_array_object",
61 js_name = "isVertexArrayOES"
62 )]
63 #[doc = "The `isVertexArrayOES()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"]
68 pub fn is_vertex_array_oes(
69 this: &OesVertexArrayObject,
70 array_object: Option<&WebGlVertexArrayObject>,
71 ) -> bool;
72}
73impl OesVertexArrayObject {
74 #[doc = "The `OES_vertex_array_object.VERTEX_ARRAY_BINDING_OES` const."]
75 #[doc = ""]
76 #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"]
77 pub const VERTEX_ARRAY_BINDING_OES: u32 = 34229u64 as u32;
78}