| 1 | #![allow (unused_imports)] |
| 2 | #![allow (clippy::all)] |
| 3 | use super::*; |
| 4 | use wasm_bindgen::prelude::*; |
| 5 | #[wasm_bindgen ] |
| 6 | unsafeextern "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 (method , structural , js_class = "OES_vertex_array_object" , js_name = bindVertexArrayOES)] |
| 17 | #[doc = "The `bindVertexArrayOES()` method." ] |
| 18 | #[doc = "" ] |
| 19 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)" ] |
| 20 | #[doc = "" ] |
| 21 | #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*" ] |
| 22 | pub unsafefn bind_vertex_array_oes( |
| 23 | this: &OesVertexArrayObject, |
| 24 | array_object: Option<&WebGlVertexArrayObject>, |
| 25 | ); |
| 26 | #[cfg (feature = "WebGlVertexArrayObject" )] |
| 27 | # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = createVertexArrayOES)] |
| 28 | #[doc = "The `createVertexArrayOES()` method." ] |
| 29 | #[doc = "" ] |
| 30 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)" ] |
| 31 | #[doc = "" ] |
| 32 | #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*" ] |
| 33 | pub unsafefn create_vertex_array_oes(this: &OesVertexArrayObject) -> Option<WebGlVertexArrayObject>; |
| 34 | #[cfg (feature = "WebGlVertexArrayObject" )] |
| 35 | # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = deleteVertexArrayOES)] |
| 36 | #[doc = "The `deleteVertexArrayOES()` method." ] |
| 37 | #[doc = "" ] |
| 38 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)" ] |
| 39 | #[doc = "" ] |
| 40 | #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*" ] |
| 41 | pub unsafefn delete_vertex_array_oes( |
| 42 | this: &OesVertexArrayObject, |
| 43 | array_object: Option<&WebGlVertexArrayObject>, |
| 44 | ); |
| 45 | #[cfg (feature = "WebGlVertexArrayObject" )] |
| 46 | # [wasm_bindgen (method , structural , js_class = "OES_vertex_array_object" , js_name = isVertexArrayOES)] |
| 47 | #[doc = "The `isVertexArrayOES()` method." ] |
| 48 | #[doc = "" ] |
| 49 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)" ] |
| 50 | #[doc = "" ] |
| 51 | #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*" ] |
| 52 | pub unsafefn is_vertex_array_oes( |
| 53 | this: &OesVertexArrayObject, |
| 54 | array_object: Option<&WebGlVertexArrayObject>, |
| 55 | ) -> bool; |
| 56 | } |
| 57 | impl OesVertexArrayObject { |
| 58 | #[doc = "The `OES_vertex_array_object.VERTEX_ARRAY_BINDING_OES` const." ] |
| 59 | #[doc = "" ] |
| 60 | #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*" ] |
| 61 | pub const VERTEX_ARRAY_BINDING_OES: u32 = 34229u64 as u32; |
| 62 | } |
| 63 | |