1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[wasm_bindgen] 5 extern "C" { 6 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = WebGLRenderingContext , typescript_type = "WebGLRenderingContext")] 7 #[derive(Debug, Clone, PartialEq, Eq)] 8 #[doc = "The `WebGlRenderingContext` class."] 9 #[doc = ""] 10 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext)"] 11 #[doc = ""] 12 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 13 pub type WebGlRenderingContext; 14 # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = canvas)] 15 #[doc = "Getter for the `canvas` field of this object."] 16 #[doc = ""] 17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas)"] 18 #[doc = ""] 19 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>20 pub fn canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>; 21 # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferWidth)] 22 #[doc = "Getter for the `drawingBufferWidth` field of this object."] 23 #[doc = ""] 24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth)"] 25 #[doc = ""] 26 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] drawing_buffer_width(this: &WebGlRenderingContext) -> i3227 pub fn drawing_buffer_width(this: &WebGlRenderingContext) -> i32; 28 # [wasm_bindgen (structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferHeight)] 29 #[doc = "Getter for the `drawingBufferHeight` field of this object."] 30 #[doc = ""] 31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight)"] 32 #[doc = ""] 33 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] drawing_buffer_height(this: &WebGlRenderingContext) -> i3234 pub fn drawing_buffer_height(this: &WebGlRenderingContext) -> i32; 35 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] 36 #[doc = "The `bufferData()` method."] 37 #[doc = ""] 38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] 39 #[doc = ""] 40 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32)41 pub fn buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32); 42 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] 43 #[doc = "The `bufferData()` method."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32)48 pub fn buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32); 49 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] 50 #[doc = "The `bufferData()` method."] 51 #[doc = ""] 52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] 53 #[doc = ""] 54 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_data_with_opt_array_buffer( this: &WebGlRenderingContext, target: u32, data: Option<&::js_sys::ArrayBuffer>, usage: u32, )55 pub fn buffer_data_with_opt_array_buffer( 56 this: &WebGlRenderingContext, 57 target: u32, 58 data: Option<&::js_sys::ArrayBuffer>, 59 usage: u32, 60 ); 61 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] 62 #[doc = "The `bufferData()` method."] 63 #[doc = ""] 64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] 65 #[doc = ""] 66 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_data_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, data: &::js_sys::Object, usage: u32, )67 pub fn buffer_data_with_array_buffer_view( 68 this: &WebGlRenderingContext, 69 target: u32, 70 data: &::js_sys::Object, 71 usage: u32, 72 ); 73 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData)] 74 #[doc = "The `bufferData()` method."] 75 #[doc = ""] 76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] 77 #[doc = ""] 78 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_data_with_u8_array( this: &WebGlRenderingContext, target: u32, data: &[u8], usage: u32, )79 pub fn buffer_data_with_u8_array( 80 this: &WebGlRenderingContext, 81 target: u32, 82 data: &[u8], 83 usage: u32, 84 ); 85 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 86 #[doc = "The `bufferSubData()` method."] 87 #[doc = ""] 88 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 89 #[doc = ""] 90 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_i32_and_array_buffer( this: &WebGlRenderingContext, target: u32, offset: i32, data: &::js_sys::ArrayBuffer, )91 pub fn buffer_sub_data_with_i32_and_array_buffer( 92 this: &WebGlRenderingContext, 93 target: u32, 94 offset: i32, 95 data: &::js_sys::ArrayBuffer, 96 ); 97 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 98 #[doc = "The `bufferSubData()` method."] 99 #[doc = ""] 100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 101 #[doc = ""] 102 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_f64_and_array_buffer( this: &WebGlRenderingContext, target: u32, offset: f64, data: &::js_sys::ArrayBuffer, )103 pub fn buffer_sub_data_with_f64_and_array_buffer( 104 this: &WebGlRenderingContext, 105 target: u32, 106 offset: f64, 107 data: &::js_sys::ArrayBuffer, 108 ); 109 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 110 #[doc = "The `bufferSubData()` method."] 111 #[doc = ""] 112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 113 #[doc = ""] 114 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_i32_and_array_buffer_view( this: &WebGlRenderingContext, target: u32, offset: i32, data: &::js_sys::Object, )115 pub fn buffer_sub_data_with_i32_and_array_buffer_view( 116 this: &WebGlRenderingContext, 117 target: u32, 118 offset: i32, 119 data: &::js_sys::Object, 120 ); 121 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 122 #[doc = "The `bufferSubData()` method."] 123 #[doc = ""] 124 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 125 #[doc = ""] 126 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_f64_and_array_buffer_view( this: &WebGlRenderingContext, target: u32, offset: f64, data: &::js_sys::Object, )127 pub fn buffer_sub_data_with_f64_and_array_buffer_view( 128 this: &WebGlRenderingContext, 129 target: u32, 130 offset: f64, 131 data: &::js_sys::Object, 132 ); 133 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 134 #[doc = "The `bufferSubData()` method."] 135 #[doc = ""] 136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 137 #[doc = ""] 138 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_i32_and_u8_array( this: &WebGlRenderingContext, target: u32, offset: i32, data: &[u8], )139 pub fn buffer_sub_data_with_i32_and_u8_array( 140 this: &WebGlRenderingContext, 141 target: u32, 142 offset: i32, 143 data: &[u8], 144 ); 145 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData)] 146 #[doc = "The `bufferSubData()` method."] 147 #[doc = ""] 148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] 149 #[doc = ""] 150 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] buffer_sub_data_with_f64_and_u8_array( this: &WebGlRenderingContext, target: u32, offset: f64, data: &[u8], )151 pub fn buffer_sub_data_with_f64_and_u8_array( 152 this: &WebGlRenderingContext, 153 target: u32, 154 offset: f64, 155 data: &[u8], 156 ); 157 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = commit)] 158 #[doc = "The `commit()` method."] 159 #[doc = ""] 160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit)"] 161 #[doc = ""] 162 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] commit(this: &WebGlRenderingContext)163 pub fn commit(this: &WebGlRenderingContext); 164 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] 165 #[doc = "The `compressedTexImage2D()` method."] 166 #[doc = ""] 167 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] 168 #[doc = ""] 169 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] compressed_tex_image_2d_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, data: &::js_sys::Object, )170 pub fn compressed_tex_image_2d_with_array_buffer_view( 171 this: &WebGlRenderingContext, 172 target: u32, 173 level: i32, 174 internalformat: u32, 175 width: i32, 176 height: i32, 177 border: i32, 178 data: &::js_sys::Object, 179 ); 180 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D)] 181 #[doc = "The `compressedTexImage2D()` method."] 182 #[doc = ""] 183 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] 184 #[doc = ""] 185 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] compressed_tex_image_2d_with_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, width: i32, height: i32, border: i32, data: &[u8], )186 pub fn compressed_tex_image_2d_with_u8_array( 187 this: &WebGlRenderingContext, 188 target: u32, 189 level: i32, 190 internalformat: u32, 191 width: i32, 192 height: i32, 193 border: i32, 194 data: &[u8], 195 ); 196 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] 197 #[doc = "The `compressedTexSubImage2D()` method."] 198 #[doc = ""] 199 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] 200 #[doc = ""] 201 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] compressed_tex_sub_image_2d_with_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data: &::js_sys::Object, )202 pub fn compressed_tex_sub_image_2d_with_array_buffer_view( 203 this: &WebGlRenderingContext, 204 target: u32, 205 level: i32, 206 xoffset: i32, 207 yoffset: i32, 208 width: i32, 209 height: i32, 210 format: u32, 211 data: &::js_sys::Object, 212 ); 213 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D)] 214 #[doc = "The `compressedTexSubImage2D()` method."] 215 #[doc = ""] 216 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] 217 #[doc = ""] 218 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] compressed_tex_sub_image_2d_with_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, data: &mut [u8], )219 pub fn compressed_tex_sub_image_2d_with_u8_array( 220 this: &WebGlRenderingContext, 221 target: u32, 222 level: i32, 223 xoffset: i32, 224 yoffset: i32, 225 width: i32, 226 height: i32, 227 format: u32, 228 data: &mut [u8], 229 ); 230 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] 231 #[doc = "The `readPixels()` method."] 232 #[doc = ""] 233 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] 234 #[doc = ""] 235 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] read_pixels_with_opt_array_buffer_view( this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>236 pub fn read_pixels_with_opt_array_buffer_view( 237 this: &WebGlRenderingContext, 238 x: i32, 239 y: i32, 240 width: i32, 241 height: i32, 242 format: u32, 243 type_: u32, 244 pixels: Option<&::js_sys::Object>, 245 ) -> Result<(), JsValue>; 246 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels)] 247 #[doc = "The `readPixels()` method."] 248 #[doc = ""] 249 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] 250 #[doc = ""] 251 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] read_pixels_with_opt_u8_array( this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&mut [u8]>, ) -> Result<(), JsValue>252 pub fn read_pixels_with_opt_u8_array( 253 this: &WebGlRenderingContext, 254 x: i32, 255 y: i32, 256 width: i32, 257 height: i32, 258 format: u32, 259 type_: u32, 260 pixels: Option<&mut [u8]>, 261 ) -> Result<(), JsValue>; 262 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 263 #[doc = "The `texImage2D()` method."] 264 #[doc = ""] 265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 266 #[doc = ""] 267 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>268 pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( 269 this: &WebGlRenderingContext, 270 target: u32, 271 level: i32, 272 internalformat: i32, 273 width: i32, 274 height: i32, 275 border: i32, 276 format: u32, 277 type_: u32, 278 pixels: Option<&::js_sys::Object>, 279 ) -> Result<(), JsValue>; 280 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 281 #[doc = "The `texImage2D()` method."] 282 #[doc = ""] 283 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 284 #[doc = ""] 285 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>286 pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( 287 this: &WebGlRenderingContext, 288 target: u32, 289 level: i32, 290 internalformat: i32, 291 width: i32, 292 height: i32, 293 border: i32, 294 format: u32, 295 type_: u32, 296 pixels: Option<&[u8]>, 297 ) -> Result<(), JsValue>; 298 #[cfg(feature = "ImageBitmap")] 299 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 300 #[doc = "The `texImage2D()` method."] 301 #[doc = ""] 302 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 303 #[doc = ""] 304 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] tex_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, pixels: &ImageBitmap, ) -> Result<(), JsValue>305 pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap( 306 this: &WebGlRenderingContext, 307 target: u32, 308 level: i32, 309 internalformat: i32, 310 format: u32, 311 type_: u32, 312 pixels: &ImageBitmap, 313 ) -> Result<(), JsValue>; 314 #[cfg(feature = "ImageData")] 315 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 316 #[doc = "The `texImage2D()` method."] 317 #[doc = ""] 318 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 319 #[doc = ""] 320 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] tex_image_2d_with_u32_and_u32_and_image_data( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, pixels: &ImageData, ) -> Result<(), JsValue>321 pub fn tex_image_2d_with_u32_and_u32_and_image_data( 322 this: &WebGlRenderingContext, 323 target: u32, 324 level: i32, 325 internalformat: i32, 326 format: u32, 327 type_: u32, 328 pixels: &ImageData, 329 ) -> Result<(), JsValue>; 330 #[cfg(feature = "HtmlImageElement")] 331 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 332 #[doc = "The `texImage2D()` method."] 333 #[doc = ""] 334 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 335 #[doc = ""] 336 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] tex_image_2d_with_u32_and_u32_and_image( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, image: &HtmlImageElement, ) -> Result<(), JsValue>337 pub fn tex_image_2d_with_u32_and_u32_and_image( 338 this: &WebGlRenderingContext, 339 target: u32, 340 level: i32, 341 internalformat: i32, 342 format: u32, 343 type_: u32, 344 image: &HtmlImageElement, 345 ) -> Result<(), JsValue>; 346 #[cfg(feature = "HtmlCanvasElement")] 347 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 348 #[doc = "The `texImage2D()` method."] 349 #[doc = ""] 350 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 351 #[doc = ""] 352 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] tex_image_2d_with_u32_and_u32_and_canvas( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>353 pub fn tex_image_2d_with_u32_and_u32_and_canvas( 354 this: &WebGlRenderingContext, 355 target: u32, 356 level: i32, 357 internalformat: i32, 358 format: u32, 359 type_: u32, 360 canvas: &HtmlCanvasElement, 361 ) -> Result<(), JsValue>; 362 #[cfg(feature = "HtmlVideoElement")] 363 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D)] 364 #[doc = "The `texImage2D()` method."] 365 #[doc = ""] 366 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] 367 #[doc = ""] 368 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] tex_image_2d_with_u32_and_u32_and_video( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: i32, format: u32, type_: u32, video: &HtmlVideoElement, ) -> Result<(), JsValue>369 pub fn tex_image_2d_with_u32_and_u32_and_video( 370 this: &WebGlRenderingContext, 371 target: u32, 372 level: i32, 373 internalformat: i32, 374 format: u32, 375 type_: u32, 376 video: &HtmlVideoElement, 377 ) -> Result<(), JsValue>; 378 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 379 #[doc = "The `texSubImage2D()` method."] 380 #[doc = ""] 381 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 382 #[doc = ""] 383 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&::js_sys::Object>, ) -> Result<(), JsValue>384 pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( 385 this: &WebGlRenderingContext, 386 target: u32, 387 level: i32, 388 xoffset: i32, 389 yoffset: i32, 390 width: i32, 391 height: i32, 392 format: u32, 393 type_: u32, 394 pixels: Option<&::js_sys::Object>, 395 ) -> Result<(), JsValue>; 396 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 397 #[doc = "The `texSubImage2D()` method."] 398 #[doc = ""] 399 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 400 #[doc = ""] 401 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, type_: u32, pixels: Option<&[u8]>, ) -> Result<(), JsValue>402 pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( 403 this: &WebGlRenderingContext, 404 target: u32, 405 level: i32, 406 xoffset: i32, 407 yoffset: i32, 408 width: i32, 409 height: i32, 410 format: u32, 411 type_: u32, 412 pixels: Option<&[u8]>, 413 ) -> Result<(), JsValue>; 414 #[cfg(feature = "ImageBitmap")] 415 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 416 #[doc = "The `texSubImage2D()` method."] 417 #[doc = ""] 418 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 419 #[doc = ""] 420 #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, pixels: &ImageBitmap, ) -> Result<(), JsValue>421 pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( 422 this: &WebGlRenderingContext, 423 target: u32, 424 level: i32, 425 xoffset: i32, 426 yoffset: i32, 427 format: u32, 428 type_: u32, 429 pixels: &ImageBitmap, 430 ) -> Result<(), JsValue>; 431 #[cfg(feature = "ImageData")] 432 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 433 #[doc = "The `texSubImage2D()` method."] 434 #[doc = ""] 435 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 436 #[doc = ""] 437 #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] tex_sub_image_2d_with_u32_and_u32_and_image_data( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, pixels: &ImageData, ) -> Result<(), JsValue>438 pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data( 439 this: &WebGlRenderingContext, 440 target: u32, 441 level: i32, 442 xoffset: i32, 443 yoffset: i32, 444 format: u32, 445 type_: u32, 446 pixels: &ImageData, 447 ) -> Result<(), JsValue>; 448 #[cfg(feature = "HtmlImageElement")] 449 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 450 #[doc = "The `texSubImage2D()` method."] 451 #[doc = ""] 452 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 453 #[doc = ""] 454 #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] tex_sub_image_2d_with_u32_and_u32_and_image( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, image: &HtmlImageElement, ) -> Result<(), JsValue>455 pub fn tex_sub_image_2d_with_u32_and_u32_and_image( 456 this: &WebGlRenderingContext, 457 target: u32, 458 level: i32, 459 xoffset: i32, 460 yoffset: i32, 461 format: u32, 462 type_: u32, 463 image: &HtmlImageElement, 464 ) -> Result<(), JsValue>; 465 #[cfg(feature = "HtmlCanvasElement")] 466 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 467 #[doc = "The `texSubImage2D()` method."] 468 #[doc = ""] 469 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 470 #[doc = ""] 471 #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] tex_sub_image_2d_with_u32_and_u32_and_canvas( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, canvas: &HtmlCanvasElement, ) -> Result<(), JsValue>472 pub fn tex_sub_image_2d_with_u32_and_u32_and_canvas( 473 this: &WebGlRenderingContext, 474 target: u32, 475 level: i32, 476 xoffset: i32, 477 yoffset: i32, 478 format: u32, 479 type_: u32, 480 canvas: &HtmlCanvasElement, 481 ) -> Result<(), JsValue>; 482 #[cfg(feature = "HtmlVideoElement")] 483 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D)] 484 #[doc = "The `texSubImage2D()` method."] 485 #[doc = ""] 486 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] 487 #[doc = ""] 488 #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] tex_sub_image_2d_with_u32_and_u32_and_video( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, format: u32, type_: u32, video: &HtmlVideoElement, ) -> Result<(), JsValue>489 pub fn tex_sub_image_2d_with_u32_and_u32_and_video( 490 this: &WebGlRenderingContext, 491 target: u32, 492 level: i32, 493 xoffset: i32, 494 yoffset: i32, 495 format: u32, 496 type_: u32, 497 video: &HtmlVideoElement, 498 ) -> Result<(), JsValue>; 499 #[cfg(feature = "WebGlUniformLocation")] 500 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] 501 #[doc = "The `uniform1fv()` method."] 502 #[doc = ""] 503 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] 504 #[doc = ""] 505 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], )506 pub fn uniform1fv_with_f32_array( 507 this: &WebGlRenderingContext, 508 location: Option<&WebGlUniformLocation>, 509 data: &[f32], 510 ); 511 #[cfg(feature = "WebGlUniformLocation")] 512 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv)] 513 #[doc = "The `uniform1fv()` method."] 514 #[doc = ""] 515 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] 516 #[doc = ""] 517 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )518 pub fn uniform1fv_with_f32_sequence( 519 this: &WebGlRenderingContext, 520 location: Option<&WebGlUniformLocation>, 521 data: &::wasm_bindgen::JsValue, 522 ); 523 #[cfg(feature = "WebGlUniformLocation")] 524 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] 525 #[doc = "The `uniform1iv()` method."] 526 #[doc = ""] 527 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] 528 #[doc = ""] 529 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], )530 pub fn uniform1iv_with_i32_array( 531 this: &WebGlRenderingContext, 532 location: Option<&WebGlUniformLocation>, 533 data: &[i32], 534 ); 535 #[cfg(feature = "WebGlUniformLocation")] 536 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv)] 537 #[doc = "The `uniform1iv()` method."] 538 #[doc = ""] 539 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] 540 #[doc = ""] 541 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )542 pub fn uniform1iv_with_i32_sequence( 543 this: &WebGlRenderingContext, 544 location: Option<&WebGlUniformLocation>, 545 data: &::wasm_bindgen::JsValue, 546 ); 547 #[cfg(feature = "WebGlUniformLocation")] 548 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] 549 #[doc = "The `uniform2fv()` method."] 550 #[doc = ""] 551 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] 552 #[doc = ""] 553 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], )554 pub fn uniform2fv_with_f32_array( 555 this: &WebGlRenderingContext, 556 location: Option<&WebGlUniformLocation>, 557 data: &[f32], 558 ); 559 #[cfg(feature = "WebGlUniformLocation")] 560 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv)] 561 #[doc = "The `uniform2fv()` method."] 562 #[doc = ""] 563 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] 564 #[doc = ""] 565 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )566 pub fn uniform2fv_with_f32_sequence( 567 this: &WebGlRenderingContext, 568 location: Option<&WebGlUniformLocation>, 569 data: &::wasm_bindgen::JsValue, 570 ); 571 #[cfg(feature = "WebGlUniformLocation")] 572 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] 573 #[doc = "The `uniform2iv()` method."] 574 #[doc = ""] 575 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] 576 #[doc = ""] 577 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], )578 pub fn uniform2iv_with_i32_array( 579 this: &WebGlRenderingContext, 580 location: Option<&WebGlUniformLocation>, 581 data: &[i32], 582 ); 583 #[cfg(feature = "WebGlUniformLocation")] 584 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv)] 585 #[doc = "The `uniform2iv()` method."] 586 #[doc = ""] 587 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] 588 #[doc = ""] 589 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )590 pub fn uniform2iv_with_i32_sequence( 591 this: &WebGlRenderingContext, 592 location: Option<&WebGlUniformLocation>, 593 data: &::wasm_bindgen::JsValue, 594 ); 595 #[cfg(feature = "WebGlUniformLocation")] 596 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] 597 #[doc = "The `uniform3fv()` method."] 598 #[doc = ""] 599 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] 600 #[doc = ""] 601 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], )602 pub fn uniform3fv_with_f32_array( 603 this: &WebGlRenderingContext, 604 location: Option<&WebGlUniformLocation>, 605 data: &[f32], 606 ); 607 #[cfg(feature = "WebGlUniformLocation")] 608 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv)] 609 #[doc = "The `uniform3fv()` method."] 610 #[doc = ""] 611 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] 612 #[doc = ""] 613 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )614 pub fn uniform3fv_with_f32_sequence( 615 this: &WebGlRenderingContext, 616 location: Option<&WebGlUniformLocation>, 617 data: &::wasm_bindgen::JsValue, 618 ); 619 #[cfg(feature = "WebGlUniformLocation")] 620 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] 621 #[doc = "The `uniform3iv()` method."] 622 #[doc = ""] 623 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] 624 #[doc = ""] 625 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], )626 pub fn uniform3iv_with_i32_array( 627 this: &WebGlRenderingContext, 628 location: Option<&WebGlUniformLocation>, 629 data: &[i32], 630 ); 631 #[cfg(feature = "WebGlUniformLocation")] 632 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv)] 633 #[doc = "The `uniform3iv()` method."] 634 #[doc = ""] 635 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] 636 #[doc = ""] 637 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )638 pub fn uniform3iv_with_i32_sequence( 639 this: &WebGlRenderingContext, 640 location: Option<&WebGlUniformLocation>, 641 data: &::wasm_bindgen::JsValue, 642 ); 643 #[cfg(feature = "WebGlUniformLocation")] 644 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] 645 #[doc = "The `uniform4fv()` method."] 646 #[doc = ""] 647 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] 648 #[doc = ""] 649 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[f32], )650 pub fn uniform4fv_with_f32_array( 651 this: &WebGlRenderingContext, 652 location: Option<&WebGlUniformLocation>, 653 data: &[f32], 654 ); 655 #[cfg(feature = "WebGlUniformLocation")] 656 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv)] 657 #[doc = "The `uniform4fv()` method."] 658 #[doc = ""] 659 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] 660 #[doc = ""] 661 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )662 pub fn uniform4fv_with_f32_sequence( 663 this: &WebGlRenderingContext, 664 location: Option<&WebGlUniformLocation>, 665 data: &::wasm_bindgen::JsValue, 666 ); 667 #[cfg(feature = "WebGlUniformLocation")] 668 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] 669 #[doc = "The `uniform4iv()` method."] 670 #[doc = ""] 671 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] 672 #[doc = ""] 673 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4iv_with_i32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &[i32], )674 pub fn uniform4iv_with_i32_array( 675 this: &WebGlRenderingContext, 676 location: Option<&WebGlUniformLocation>, 677 data: &[i32], 678 ); 679 #[cfg(feature = "WebGlUniformLocation")] 680 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv)] 681 #[doc = "The `uniform4iv()` method."] 682 #[doc = ""] 683 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] 684 #[doc = ""] 685 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4iv_with_i32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, data: &::wasm_bindgen::JsValue, )686 pub fn uniform4iv_with_i32_sequence( 687 this: &WebGlRenderingContext, 688 location: Option<&WebGlUniformLocation>, 689 data: &::wasm_bindgen::JsValue, 690 ); 691 #[cfg(feature = "WebGlUniformLocation")] 692 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] 693 #[doc = "The `uniformMatrix2fv()` method."] 694 #[doc = ""] 695 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] 696 #[doc = ""] 697 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix2fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], )698 pub fn uniform_matrix2fv_with_f32_array( 699 this: &WebGlRenderingContext, 700 location: Option<&WebGlUniformLocation>, 701 transpose: bool, 702 data: &[f32], 703 ); 704 #[cfg(feature = "WebGlUniformLocation")] 705 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv)] 706 #[doc = "The `uniformMatrix2fv()` method."] 707 #[doc = ""] 708 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] 709 #[doc = ""] 710 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix2fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, )711 pub fn uniform_matrix2fv_with_f32_sequence( 712 this: &WebGlRenderingContext, 713 location: Option<&WebGlUniformLocation>, 714 transpose: bool, 715 data: &::wasm_bindgen::JsValue, 716 ); 717 #[cfg(feature = "WebGlUniformLocation")] 718 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] 719 #[doc = "The `uniformMatrix3fv()` method."] 720 #[doc = ""] 721 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] 722 #[doc = ""] 723 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix3fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], )724 pub fn uniform_matrix3fv_with_f32_array( 725 this: &WebGlRenderingContext, 726 location: Option<&WebGlUniformLocation>, 727 transpose: bool, 728 data: &[f32], 729 ); 730 #[cfg(feature = "WebGlUniformLocation")] 731 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv)] 732 #[doc = "The `uniformMatrix3fv()` method."] 733 #[doc = ""] 734 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] 735 #[doc = ""] 736 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix3fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, )737 pub fn uniform_matrix3fv_with_f32_sequence( 738 this: &WebGlRenderingContext, 739 location: Option<&WebGlUniformLocation>, 740 transpose: bool, 741 data: &::wasm_bindgen::JsValue, 742 ); 743 #[cfg(feature = "WebGlUniformLocation")] 744 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] 745 #[doc = "The `uniformMatrix4fv()` method."] 746 #[doc = ""] 747 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] 748 #[doc = ""] 749 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix4fv_with_f32_array( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &[f32], )750 pub fn uniform_matrix4fv_with_f32_array( 751 this: &WebGlRenderingContext, 752 location: Option<&WebGlUniformLocation>, 753 transpose: bool, 754 data: &[f32], 755 ); 756 #[cfg(feature = "WebGlUniformLocation")] 757 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv)] 758 #[doc = "The `uniformMatrix4fv()` method."] 759 #[doc = ""] 760 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] 761 #[doc = ""] 762 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform_matrix4fv_with_f32_sequence( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, transpose: bool, data: &::wasm_bindgen::JsValue, )763 pub fn uniform_matrix4fv_with_f32_sequence( 764 this: &WebGlRenderingContext, 765 location: Option<&WebGlUniformLocation>, 766 transpose: bool, 767 data: &::wasm_bindgen::JsValue, 768 ); 769 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = activeTexture)] 770 #[doc = "The `activeTexture()` method."] 771 #[doc = ""] 772 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture)"] 773 #[doc = ""] 774 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] active_texture(this: &WebGlRenderingContext, texture: u32)775 pub fn active_texture(this: &WebGlRenderingContext, texture: u32); 776 #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] 777 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = attachShader)] 778 #[doc = "The `attachShader()` method."] 779 #[doc = ""] 780 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader)"] 781 #[doc = ""] 782 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] attach_shader( this: &WebGlRenderingContext, program: &WebGlProgram, shader: &WebGlShader, )783 pub fn attach_shader( 784 this: &WebGlRenderingContext, 785 program: &WebGlProgram, 786 shader: &WebGlShader, 787 ); 788 #[cfg(feature = "WebGlProgram")] 789 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindAttribLocation)] 790 #[doc = "The `bindAttribLocation()` method."] 791 #[doc = ""] 792 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation)"] 793 #[doc = ""] 794 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] bind_attrib_location( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, name: &str, )795 pub fn bind_attrib_location( 796 this: &WebGlRenderingContext, 797 program: &WebGlProgram, 798 index: u32, 799 name: &str, 800 ); 801 #[cfg(feature = "WebGlBuffer")] 802 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindBuffer)] 803 #[doc = "The `bindBuffer()` method."] 804 #[doc = ""] 805 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer)"] 806 #[doc = ""] 807 #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>)808 pub fn bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>); 809 #[cfg(feature = "WebGlFramebuffer")] 810 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindFramebuffer)] 811 #[doc = "The `bindFramebuffer()` method."] 812 #[doc = ""] 813 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer)"] 814 #[doc = ""] 815 #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] bind_framebuffer( this: &WebGlRenderingContext, target: u32, framebuffer: Option<&WebGlFramebuffer>, )816 pub fn bind_framebuffer( 817 this: &WebGlRenderingContext, 818 target: u32, 819 framebuffer: Option<&WebGlFramebuffer>, 820 ); 821 #[cfg(feature = "WebGlRenderbuffer")] 822 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindRenderbuffer)] 823 #[doc = "The `bindRenderbuffer()` method."] 824 #[doc = ""] 825 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer)"] 826 #[doc = ""] 827 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] bind_renderbuffer( this: &WebGlRenderingContext, target: u32, renderbuffer: Option<&WebGlRenderbuffer>, )828 pub fn bind_renderbuffer( 829 this: &WebGlRenderingContext, 830 target: u32, 831 renderbuffer: Option<&WebGlRenderbuffer>, 832 ); 833 #[cfg(feature = "WebGlTexture")] 834 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = bindTexture)] 835 #[doc = "The `bindTexture()` method."] 836 #[doc = ""] 837 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture)"] 838 #[doc = ""] 839 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>)840 pub fn bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>); 841 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendColor)] 842 #[doc = "The `blendColor()` method."] 843 #[doc = ""] 844 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor)"] 845 #[doc = ""] 846 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32)847 pub fn blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); 848 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquation)] 849 #[doc = "The `blendEquation()` method."] 850 #[doc = ""] 851 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation)"] 852 #[doc = ""] 853 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] blend_equation(this: &WebGlRenderingContext, mode: u32)854 pub fn blend_equation(this: &WebGlRenderingContext, mode: u32); 855 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquationSeparate)] 856 #[doc = "The `blendEquationSeparate()` method."] 857 #[doc = ""] 858 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate)"] 859 #[doc = ""] 860 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32)861 pub fn blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32); 862 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFunc)] 863 #[doc = "The `blendFunc()` method."] 864 #[doc = ""] 865 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc)"] 866 #[doc = ""] 867 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32)868 pub fn blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32); 869 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = blendFuncSeparate)] 870 #[doc = "The `blendFuncSeparate()` method."] 871 #[doc = ""] 872 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate)"] 873 #[doc = ""] 874 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] blend_func_separate( this: &WebGlRenderingContext, src_rgb: u32, dst_rgb: u32, src_alpha: u32, dst_alpha: u32, )875 pub fn blend_func_separate( 876 this: &WebGlRenderingContext, 877 src_rgb: u32, 878 dst_rgb: u32, 879 src_alpha: u32, 880 dst_alpha: u32, 881 ); 882 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = checkFramebufferStatus)] 883 #[doc = "The `checkFramebufferStatus()` method."] 884 #[doc = ""] 885 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus)"] 886 #[doc = ""] 887 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32888 pub fn check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32; 889 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clear)] 890 #[doc = "The `clear()` method."] 891 #[doc = ""] 892 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear)"] 893 #[doc = ""] 894 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] clear(this: &WebGlRenderingContext, mask: u32)895 pub fn clear(this: &WebGlRenderingContext, mask: u32); 896 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearColor)] 897 #[doc = "The `clearColor()` method."] 898 #[doc = ""] 899 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor)"] 900 #[doc = ""] 901 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32)902 pub fn clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); 903 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearDepth)] 904 #[doc = "The `clearDepth()` method."] 905 #[doc = ""] 906 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth)"] 907 #[doc = ""] 908 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] clear_depth(this: &WebGlRenderingContext, depth: f32)909 pub fn clear_depth(this: &WebGlRenderingContext, depth: f32); 910 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = clearStencil)] 911 #[doc = "The `clearStencil()` method."] 912 #[doc = ""] 913 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil)"] 914 #[doc = ""] 915 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] clear_stencil(this: &WebGlRenderingContext, s: i32)916 pub fn clear_stencil(this: &WebGlRenderingContext, s: i32); 917 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = colorMask)] 918 #[doc = "The `colorMask()` method."] 919 #[doc = ""] 920 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask)"] 921 #[doc = ""] 922 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] color_mask( this: &WebGlRenderingContext, red: bool, green: bool, blue: bool, alpha: bool, )923 pub fn color_mask( 924 this: &WebGlRenderingContext, 925 red: bool, 926 green: bool, 927 blue: bool, 928 alpha: bool, 929 ); 930 #[cfg(feature = "WebGlShader")] 931 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = compileShader)] 932 #[doc = "The `compileShader()` method."] 933 #[doc = ""] 934 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader)"] 935 #[doc = ""] 936 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader)937 pub fn compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader); 938 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexImage2D)] 939 #[doc = "The `copyTexImage2D()` method."] 940 #[doc = ""] 941 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D)"] 942 #[doc = ""] 943 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] copy_tex_image_2d( this: &WebGlRenderingContext, target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32, )944 pub fn copy_tex_image_2d( 945 this: &WebGlRenderingContext, 946 target: u32, 947 level: i32, 948 internalformat: u32, 949 x: i32, 950 y: i32, 951 width: i32, 952 height: i32, 953 border: i32, 954 ); 955 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexSubImage2D)] 956 #[doc = "The `copyTexSubImage2D()` method."] 957 #[doc = ""] 958 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D)"] 959 #[doc = ""] 960 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] copy_tex_sub_image_2d( this: &WebGlRenderingContext, target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32, )961 pub fn copy_tex_sub_image_2d( 962 this: &WebGlRenderingContext, 963 target: u32, 964 level: i32, 965 xoffset: i32, 966 yoffset: i32, 967 x: i32, 968 y: i32, 969 width: i32, 970 height: i32, 971 ); 972 #[cfg(feature = "WebGlBuffer")] 973 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createBuffer)] 974 #[doc = "The `createBuffer()` method."] 975 #[doc = ""] 976 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer)"] 977 #[doc = ""] 978 #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] create_buffer(this: &WebGlRenderingContext) -> Option<WebGlBuffer>979 pub fn create_buffer(this: &WebGlRenderingContext) -> Option<WebGlBuffer>; 980 #[cfg(feature = "WebGlFramebuffer")] 981 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createFramebuffer)] 982 #[doc = "The `createFramebuffer()` method."] 983 #[doc = ""] 984 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer)"] 985 #[doc = ""] 986 #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] create_framebuffer(this: &WebGlRenderingContext) -> Option<WebGlFramebuffer>987 pub fn create_framebuffer(this: &WebGlRenderingContext) -> Option<WebGlFramebuffer>; 988 #[cfg(feature = "WebGlProgram")] 989 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createProgram)] 990 #[doc = "The `createProgram()` method."] 991 #[doc = ""] 992 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram)"] 993 #[doc = ""] 994 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] create_program(this: &WebGlRenderingContext) -> Option<WebGlProgram>995 pub fn create_program(this: &WebGlRenderingContext) -> Option<WebGlProgram>; 996 #[cfg(feature = "WebGlRenderbuffer")] 997 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createRenderbuffer)] 998 #[doc = "The `createRenderbuffer()` method."] 999 #[doc = ""] 1000 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer)"] 1001 #[doc = ""] 1002 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] create_renderbuffer(this: &WebGlRenderingContext) -> Option<WebGlRenderbuffer>1003 pub fn create_renderbuffer(this: &WebGlRenderingContext) -> Option<WebGlRenderbuffer>; 1004 #[cfg(feature = "WebGlShader")] 1005 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createShader)] 1006 #[doc = "The `createShader()` method."] 1007 #[doc = ""] 1008 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader)"] 1009 #[doc = ""] 1010 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] create_shader(this: &WebGlRenderingContext, type_: u32) -> Option<WebGlShader>1011 pub fn create_shader(this: &WebGlRenderingContext, type_: u32) -> Option<WebGlShader>; 1012 #[cfg(feature = "WebGlTexture")] 1013 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = createTexture)] 1014 #[doc = "The `createTexture()` method."] 1015 #[doc = ""] 1016 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture)"] 1017 #[doc = ""] 1018 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] create_texture(this: &WebGlRenderingContext) -> Option<WebGlTexture>1019 pub fn create_texture(this: &WebGlRenderingContext) -> Option<WebGlTexture>; 1020 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = cullFace)] 1021 #[doc = "The `cullFace()` method."] 1022 #[doc = ""] 1023 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace)"] 1024 #[doc = ""] 1025 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] cull_face(this: &WebGlRenderingContext, mode: u32)1026 pub fn cull_face(this: &WebGlRenderingContext, mode: u32); 1027 #[cfg(feature = "WebGlBuffer")] 1028 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteBuffer)] 1029 #[doc = "The `deleteBuffer()` method."] 1030 #[doc = ""] 1031 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer)"] 1032 #[doc = ""] 1033 #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>)1034 pub fn delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>); 1035 #[cfg(feature = "WebGlFramebuffer")] 1036 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteFramebuffer)] 1037 #[doc = "The `deleteFramebuffer()` method."] 1038 #[doc = ""] 1039 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer)"] 1040 #[doc = ""] 1041 #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>)1042 pub fn delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>); 1043 #[cfg(feature = "WebGlProgram")] 1044 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteProgram)] 1045 #[doc = "The `deleteProgram()` method."] 1046 #[doc = ""] 1047 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram)"] 1048 #[doc = ""] 1049 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>)1050 pub fn delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); 1051 #[cfg(feature = "WebGlRenderbuffer")] 1052 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteRenderbuffer)] 1053 #[doc = "The `deleteRenderbuffer()` method."] 1054 #[doc = ""] 1055 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer)"] 1056 #[doc = ""] 1057 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] delete_renderbuffer( this: &WebGlRenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, )1058 pub fn delete_renderbuffer( 1059 this: &WebGlRenderingContext, 1060 renderbuffer: Option<&WebGlRenderbuffer>, 1061 ); 1062 #[cfg(feature = "WebGlShader")] 1063 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteShader)] 1064 #[doc = "The `deleteShader()` method."] 1065 #[doc = ""] 1066 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader)"] 1067 #[doc = ""] 1068 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>)1069 pub fn delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>); 1070 #[cfg(feature = "WebGlTexture")] 1071 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = deleteTexture)] 1072 #[doc = "The `deleteTexture()` method."] 1073 #[doc = ""] 1074 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture)"] 1075 #[doc = ""] 1076 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>)1077 pub fn delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>); 1078 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthFunc)] 1079 #[doc = "The `depthFunc()` method."] 1080 #[doc = ""] 1081 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc)"] 1082 #[doc = ""] 1083 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] depth_func(this: &WebGlRenderingContext, func: u32)1084 pub fn depth_func(this: &WebGlRenderingContext, func: u32); 1085 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthMask)] 1086 #[doc = "The `depthMask()` method."] 1087 #[doc = ""] 1088 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask)"] 1089 #[doc = ""] 1090 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] depth_mask(this: &WebGlRenderingContext, flag: bool)1091 pub fn depth_mask(this: &WebGlRenderingContext, flag: bool); 1092 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = depthRange)] 1093 #[doc = "The `depthRange()` method."] 1094 #[doc = ""] 1095 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange)"] 1096 #[doc = ""] 1097 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32)1098 pub fn depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32); 1099 #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] 1100 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = detachShader)] 1101 #[doc = "The `detachShader()` method."] 1102 #[doc = ""] 1103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader)"] 1104 #[doc = ""] 1105 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] detach_shader( this: &WebGlRenderingContext, program: &WebGlProgram, shader: &WebGlShader, )1106 pub fn detach_shader( 1107 this: &WebGlRenderingContext, 1108 program: &WebGlProgram, 1109 shader: &WebGlShader, 1110 ); 1111 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disable)] 1112 #[doc = "The `disable()` method."] 1113 #[doc = ""] 1114 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable)"] 1115 #[doc = ""] 1116 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] disable(this: &WebGlRenderingContext, cap: u32)1117 pub fn disable(this: &WebGlRenderingContext, cap: u32); 1118 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = disableVertexAttribArray)] 1119 #[doc = "The `disableVertexAttribArray()` method."] 1120 #[doc = ""] 1121 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray)"] 1122 #[doc = ""] 1123 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32)1124 pub fn disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); 1125 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawArrays)] 1126 #[doc = "The `drawArrays()` method."] 1127 #[doc = ""] 1128 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays)"] 1129 #[doc = ""] 1130 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32)1131 pub fn draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32); 1132 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] 1133 #[doc = "The `drawElements()` method."] 1134 #[doc = ""] 1135 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] 1136 #[doc = ""] 1137 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] draw_elements_with_i32( this: &WebGlRenderingContext, mode: u32, count: i32, type_: u32, offset: i32, )1138 pub fn draw_elements_with_i32( 1139 this: &WebGlRenderingContext, 1140 mode: u32, 1141 count: i32, 1142 type_: u32, 1143 offset: i32, 1144 ); 1145 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements)] 1146 #[doc = "The `drawElements()` method."] 1147 #[doc = ""] 1148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] 1149 #[doc = ""] 1150 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] draw_elements_with_f64( this: &WebGlRenderingContext, mode: u32, count: i32, type_: u32, offset: f64, )1151 pub fn draw_elements_with_f64( 1152 this: &WebGlRenderingContext, 1153 mode: u32, 1154 count: i32, 1155 type_: u32, 1156 offset: f64, 1157 ); 1158 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enable)] 1159 #[doc = "The `enable()` method."] 1160 #[doc = ""] 1161 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable)"] 1162 #[doc = ""] 1163 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] enable(this: &WebGlRenderingContext, cap: u32)1164 pub fn enable(this: &WebGlRenderingContext, cap: u32); 1165 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = enableVertexAttribArray)] 1166 #[doc = "The `enableVertexAttribArray()` method."] 1167 #[doc = ""] 1168 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray)"] 1169 #[doc = ""] 1170 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32)1171 pub fn enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); 1172 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = finish)] 1173 #[doc = "The `finish()` method."] 1174 #[doc = ""] 1175 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish)"] 1176 #[doc = ""] 1177 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] finish(this: &WebGlRenderingContext)1178 pub fn finish(this: &WebGlRenderingContext); 1179 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = flush)] 1180 #[doc = "The `flush()` method."] 1181 #[doc = ""] 1182 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush)"] 1183 #[doc = ""] 1184 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] flush(this: &WebGlRenderingContext)1185 pub fn flush(this: &WebGlRenderingContext); 1186 #[cfg(feature = "WebGlRenderbuffer")] 1187 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferRenderbuffer)] 1188 #[doc = "The `framebufferRenderbuffer()` method."] 1189 #[doc = ""] 1190 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer)"] 1191 #[doc = ""] 1192 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] framebuffer_renderbuffer( this: &WebGlRenderingContext, target: u32, attachment: u32, renderbuffertarget: u32, renderbuffer: Option<&WebGlRenderbuffer>, )1193 pub fn framebuffer_renderbuffer( 1194 this: &WebGlRenderingContext, 1195 target: u32, 1196 attachment: u32, 1197 renderbuffertarget: u32, 1198 renderbuffer: Option<&WebGlRenderbuffer>, 1199 ); 1200 #[cfg(feature = "WebGlTexture")] 1201 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferTexture2D)] 1202 #[doc = "The `framebufferTexture2D()` method."] 1203 #[doc = ""] 1204 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D)"] 1205 #[doc = ""] 1206 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] framebuffer_texture_2d( this: &WebGlRenderingContext, target: u32, attachment: u32, textarget: u32, texture: Option<&WebGlTexture>, level: i32, )1207 pub fn framebuffer_texture_2d( 1208 this: &WebGlRenderingContext, 1209 target: u32, 1210 attachment: u32, 1211 textarget: u32, 1212 texture: Option<&WebGlTexture>, 1213 level: i32, 1214 ); 1215 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = frontFace)] 1216 #[doc = "The `frontFace()` method."] 1217 #[doc = ""] 1218 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace)"] 1219 #[doc = ""] 1220 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] front_face(this: &WebGlRenderingContext, mode: u32)1221 pub fn front_face(this: &WebGlRenderingContext, mode: u32); 1222 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = generateMipmap)] 1223 #[doc = "The `generateMipmap()` method."] 1224 #[doc = ""] 1225 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap)"] 1226 #[doc = ""] 1227 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] generate_mipmap(this: &WebGlRenderingContext, target: u32)1228 pub fn generate_mipmap(this: &WebGlRenderingContext, target: u32); 1229 #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] 1230 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveAttrib)] 1231 #[doc = "The `getActiveAttrib()` method."] 1232 #[doc = ""] 1233 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib)"] 1234 #[doc = ""] 1235 #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] get_active_attrib( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, ) -> Option<WebGlActiveInfo>1236 pub fn get_active_attrib( 1237 this: &WebGlRenderingContext, 1238 program: &WebGlProgram, 1239 index: u32, 1240 ) -> Option<WebGlActiveInfo>; 1241 #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] 1242 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveUniform)] 1243 #[doc = "The `getActiveUniform()` method."] 1244 #[doc = ""] 1245 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform)"] 1246 #[doc = ""] 1247 #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] get_active_uniform( this: &WebGlRenderingContext, program: &WebGlProgram, index: u32, ) -> Option<WebGlActiveInfo>1248 pub fn get_active_uniform( 1249 this: &WebGlRenderingContext, 1250 program: &WebGlProgram, 1251 index: u32, 1252 ) -> Option<WebGlActiveInfo>; 1253 #[cfg(feature = "WebGlProgram")] 1254 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttachedShaders)] 1255 #[doc = "The `getAttachedShaders()` method."] 1256 #[doc = ""] 1257 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders)"] 1258 #[doc = ""] 1259 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] get_attached_shaders( this: &WebGlRenderingContext, program: &WebGlProgram, ) -> Option<::js_sys::Array>1260 pub fn get_attached_shaders( 1261 this: &WebGlRenderingContext, 1262 program: &WebGlProgram, 1263 ) -> Option<::js_sys::Array>; 1264 #[cfg(feature = "WebGlProgram")] 1265 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getAttribLocation)] 1266 #[doc = "The `getAttribLocation()` method."] 1267 #[doc = ""] 1268 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation)"] 1269 #[doc = ""] 1270 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] get_attrib_location( this: &WebGlRenderingContext, program: &WebGlProgram, name: &str, ) -> i321271 pub fn get_attrib_location( 1272 this: &WebGlRenderingContext, 1273 program: &WebGlProgram, 1274 name: &str, 1275 ) -> i32; 1276 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getBufferParameter)] 1277 #[doc = "The `getBufferParameter()` method."] 1278 #[doc = ""] 1279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter)"] 1280 #[doc = ""] 1281 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_buffer_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue1282 pub fn get_buffer_parameter( 1283 this: &WebGlRenderingContext, 1284 target: u32, 1285 pname: u32, 1286 ) -> ::wasm_bindgen::JsValue; 1287 #[cfg(feature = "WebGlContextAttributes")] 1288 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getContextAttributes)] 1289 #[doc = "The `getContextAttributes()` method."] 1290 #[doc = ""] 1291 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes)"] 1292 #[doc = ""] 1293 #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlRenderingContext`*"] get_context_attributes(this: &WebGlRenderingContext) -> Option<WebGlContextAttributes>1294 pub fn get_context_attributes(this: &WebGlRenderingContext) -> Option<WebGlContextAttributes>; 1295 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getError)] 1296 #[doc = "The `getError()` method."] 1297 #[doc = ""] 1298 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError)"] 1299 #[doc = ""] 1300 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_error(this: &WebGlRenderingContext) -> u321301 pub fn get_error(this: &WebGlRenderingContext) -> u32; 1302 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getExtension)] 1303 #[doc = "The `getExtension()` method."] 1304 #[doc = ""] 1305 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension)"] 1306 #[doc = ""] 1307 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_extension( this: &WebGlRenderingContext, name: &str, ) -> Result<Option<::js_sys::Object>, JsValue>1308 pub fn get_extension( 1309 this: &WebGlRenderingContext, 1310 name: &str, 1311 ) -> Result<Option<::js_sys::Object>, JsValue>; 1312 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getFramebufferAttachmentParameter)] 1313 #[doc = "The `getFramebufferAttachmentParameter()` method."] 1314 #[doc = ""] 1315 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter)"] 1316 #[doc = ""] 1317 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_framebuffer_attachment_parameter( this: &WebGlRenderingContext, target: u32, attachment: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>1318 pub fn get_framebuffer_attachment_parameter( 1319 this: &WebGlRenderingContext, 1320 target: u32, 1321 attachment: u32, 1322 pname: u32, 1323 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 1324 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getParameter)] 1325 #[doc = "The `getParameter()` method."] 1326 #[doc = ""] 1327 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter)"] 1328 #[doc = ""] 1329 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_parameter( this: &WebGlRenderingContext, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>1330 pub fn get_parameter( 1331 this: &WebGlRenderingContext, 1332 pname: u32, 1333 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 1334 #[cfg(feature = "WebGlProgram")] 1335 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramInfoLog)] 1336 #[doc = "The `getProgramInfoLog()` method."] 1337 #[doc = ""] 1338 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog)"] 1339 #[doc = ""] 1340 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] get_program_info_log( this: &WebGlRenderingContext, program: &WebGlProgram, ) -> Option<String>1341 pub fn get_program_info_log( 1342 this: &WebGlRenderingContext, 1343 program: &WebGlProgram, 1344 ) -> Option<String>; 1345 #[cfg(feature = "WebGlProgram")] 1346 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramParameter)] 1347 #[doc = "The `getProgramParameter()` method."] 1348 #[doc = ""] 1349 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter)"] 1350 #[doc = ""] 1351 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] get_program_parameter( this: &WebGlRenderingContext, program: &WebGlProgram, pname: u32, ) -> ::wasm_bindgen::JsValue1352 pub fn get_program_parameter( 1353 this: &WebGlRenderingContext, 1354 program: &WebGlProgram, 1355 pname: u32, 1356 ) -> ::wasm_bindgen::JsValue; 1357 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getRenderbufferParameter)] 1358 #[doc = "The `getRenderbufferParameter()` method."] 1359 #[doc = ""] 1360 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter)"] 1361 #[doc = ""] 1362 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_renderbuffer_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue1363 pub fn get_renderbuffer_parameter( 1364 this: &WebGlRenderingContext, 1365 target: u32, 1366 pname: u32, 1367 ) -> ::wasm_bindgen::JsValue; 1368 #[cfg(feature = "WebGlShader")] 1369 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderInfoLog)] 1370 #[doc = "The `getShaderInfoLog()` method."] 1371 #[doc = ""] 1372 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog)"] 1373 #[doc = ""] 1374 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] get_shader_info_log( this: &WebGlRenderingContext, shader: &WebGlShader, ) -> Option<String>1375 pub fn get_shader_info_log( 1376 this: &WebGlRenderingContext, 1377 shader: &WebGlShader, 1378 ) -> Option<String>; 1379 #[cfg(feature = "WebGlShader")] 1380 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderParameter)] 1381 #[doc = "The `getShaderParameter()` method."] 1382 #[doc = ""] 1383 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter)"] 1384 #[doc = ""] 1385 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] get_shader_parameter( this: &WebGlRenderingContext, shader: &WebGlShader, pname: u32, ) -> ::wasm_bindgen::JsValue1386 pub fn get_shader_parameter( 1387 this: &WebGlRenderingContext, 1388 shader: &WebGlShader, 1389 pname: u32, 1390 ) -> ::wasm_bindgen::JsValue; 1391 #[cfg(feature = "WebGlShaderPrecisionFormat")] 1392 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderPrecisionFormat)] 1393 #[doc = "The `getShaderPrecisionFormat()` method."] 1394 #[doc = ""] 1395 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat)"] 1396 #[doc = ""] 1397 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShaderPrecisionFormat`*"] get_shader_precision_format( this: &WebGlRenderingContext, shadertype: u32, precisiontype: u32, ) -> Option<WebGlShaderPrecisionFormat>1398 pub fn get_shader_precision_format( 1399 this: &WebGlRenderingContext, 1400 shadertype: u32, 1401 precisiontype: u32, 1402 ) -> Option<WebGlShaderPrecisionFormat>; 1403 #[cfg(feature = "WebGlShader")] 1404 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderSource)] 1405 #[doc = "The `getShaderSource()` method."] 1406 #[doc = ""] 1407 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource)"] 1408 #[doc = ""] 1409 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] get_shader_source(this: &WebGlRenderingContext, shader: &WebGlShader) -> Option<String>1410 pub fn get_shader_source(this: &WebGlRenderingContext, shader: &WebGlShader) -> Option<String>; 1411 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getSupportedExtensions)] 1412 #[doc = "The `getSupportedExtensions()` method."] 1413 #[doc = ""] 1414 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions)"] 1415 #[doc = ""] 1416 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>1417 pub fn get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>; 1418 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getTexParameter)] 1419 #[doc = "The `getTexParameter()` method."] 1420 #[doc = ""] 1421 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter)"] 1422 #[doc = ""] 1423 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_tex_parameter( this: &WebGlRenderingContext, target: u32, pname: u32, ) -> ::wasm_bindgen::JsValue1424 pub fn get_tex_parameter( 1425 this: &WebGlRenderingContext, 1426 target: u32, 1427 pname: u32, 1428 ) -> ::wasm_bindgen::JsValue; 1429 #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] 1430 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniform)] 1431 #[doc = "The `getUniform()` method."] 1432 #[doc = ""] 1433 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform)"] 1434 #[doc = ""] 1435 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] get_uniform( this: &WebGlRenderingContext, program: &WebGlProgram, location: &WebGlUniformLocation, ) -> ::wasm_bindgen::JsValue1436 pub fn get_uniform( 1437 this: &WebGlRenderingContext, 1438 program: &WebGlProgram, 1439 location: &WebGlUniformLocation, 1440 ) -> ::wasm_bindgen::JsValue; 1441 #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] 1442 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getUniformLocation)] 1443 #[doc = "The `getUniformLocation()` method."] 1444 #[doc = ""] 1445 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation)"] 1446 #[doc = ""] 1447 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] get_uniform_location( this: &WebGlRenderingContext, program: &WebGlProgram, name: &str, ) -> Option<WebGlUniformLocation>1448 pub fn get_uniform_location( 1449 this: &WebGlRenderingContext, 1450 program: &WebGlProgram, 1451 name: &str, 1452 ) -> Option<WebGlUniformLocation>; 1453 # [wasm_bindgen (catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttrib)] 1454 #[doc = "The `getVertexAttrib()` method."] 1455 #[doc = ""] 1456 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib)"] 1457 #[doc = ""] 1458 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_vertex_attrib( this: &WebGlRenderingContext, index: u32, pname: u32, ) -> Result<::wasm_bindgen::JsValue, JsValue>1459 pub fn get_vertex_attrib( 1460 this: &WebGlRenderingContext, 1461 index: u32, 1462 pname: u32, 1463 ) -> Result<::wasm_bindgen::JsValue, JsValue>; 1464 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttribOffset)] 1465 #[doc = "The `getVertexAttribOffset()` method."] 1466 #[doc = ""] 1467 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset)"] 1468 #[doc = ""] 1469 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f641470 pub fn get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f64; 1471 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = hint)] 1472 #[doc = "The `hint()` method."] 1473 #[doc = ""] 1474 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint)"] 1475 #[doc = ""] 1476 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] hint(this: &WebGlRenderingContext, target: u32, mode: u32)1477 pub fn hint(this: &WebGlRenderingContext, target: u32, mode: u32); 1478 #[cfg(feature = "WebGlBuffer")] 1479 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isBuffer)] 1480 #[doc = "The `isBuffer()` method."] 1481 #[doc = ""] 1482 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer)"] 1483 #[doc = ""] 1484 #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool1485 pub fn is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool; 1486 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isContextLost)] 1487 #[doc = "The `isContextLost()` method."] 1488 #[doc = ""] 1489 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost)"] 1490 #[doc = ""] 1491 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] is_context_lost(this: &WebGlRenderingContext) -> bool1492 pub fn is_context_lost(this: &WebGlRenderingContext) -> bool; 1493 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isEnabled)] 1494 #[doc = "The `isEnabled()` method."] 1495 #[doc = ""] 1496 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled)"] 1497 #[doc = ""] 1498 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool1499 pub fn is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool; 1500 #[cfg(feature = "WebGlFramebuffer")] 1501 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isFramebuffer)] 1502 #[doc = "The `isFramebuffer()` method."] 1503 #[doc = ""] 1504 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer)"] 1505 #[doc = ""] 1506 #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] is_framebuffer( this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>, ) -> bool1507 pub fn is_framebuffer( 1508 this: &WebGlRenderingContext, 1509 framebuffer: Option<&WebGlFramebuffer>, 1510 ) -> bool; 1511 #[cfg(feature = "WebGlProgram")] 1512 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isProgram)] 1513 #[doc = "The `isProgram()` method."] 1514 #[doc = ""] 1515 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram)"] 1516 #[doc = ""] 1517 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool1518 pub fn is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool; 1519 #[cfg(feature = "WebGlRenderbuffer")] 1520 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isRenderbuffer)] 1521 #[doc = "The `isRenderbuffer()` method."] 1522 #[doc = ""] 1523 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer)"] 1524 #[doc = ""] 1525 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] is_renderbuffer( this: &WebGlRenderingContext, renderbuffer: Option<&WebGlRenderbuffer>, ) -> bool1526 pub fn is_renderbuffer( 1527 this: &WebGlRenderingContext, 1528 renderbuffer: Option<&WebGlRenderbuffer>, 1529 ) -> bool; 1530 #[cfg(feature = "WebGlShader")] 1531 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isShader)] 1532 #[doc = "The `isShader()` method."] 1533 #[doc = ""] 1534 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader)"] 1535 #[doc = ""] 1536 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool1537 pub fn is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool; 1538 #[cfg(feature = "WebGlTexture")] 1539 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = isTexture)] 1540 #[doc = "The `isTexture()` method."] 1541 #[doc = ""] 1542 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture)"] 1543 #[doc = ""] 1544 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool1545 pub fn is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool; 1546 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = lineWidth)] 1547 #[doc = "The `lineWidth()` method."] 1548 #[doc = ""] 1549 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth)"] 1550 #[doc = ""] 1551 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] line_width(this: &WebGlRenderingContext, width: f32)1552 pub fn line_width(this: &WebGlRenderingContext, width: f32); 1553 #[cfg(feature = "WebGlProgram")] 1554 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = linkProgram)] 1555 #[doc = "The `linkProgram()` method."] 1556 #[doc = ""] 1557 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram)"] 1558 #[doc = ""] 1559 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] link_program(this: &WebGlRenderingContext, program: &WebGlProgram)1560 pub fn link_program(this: &WebGlRenderingContext, program: &WebGlProgram); 1561 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = makeXRCompatible)] 1562 #[doc = "The `makeXRCompatible()` method."] 1563 #[doc = ""] 1564 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/makeXRCompatible)"] 1565 #[doc = ""] 1566 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] make_xr_compatible(this: &WebGlRenderingContext) -> ::js_sys::Promise1567 pub fn make_xr_compatible(this: &WebGlRenderingContext) -> ::js_sys::Promise; 1568 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = pixelStorei)] 1569 #[doc = "The `pixelStorei()` method."] 1570 #[doc = ""] 1571 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei)"] 1572 #[doc = ""] 1573 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] pixel_storei(this: &WebGlRenderingContext, pname: u32, param: i32)1574 pub fn pixel_storei(this: &WebGlRenderingContext, pname: u32, param: i32); 1575 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = polygonOffset)] 1576 #[doc = "The `polygonOffset()` method."] 1577 #[doc = ""] 1578 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset)"] 1579 #[doc = ""] 1580 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] polygon_offset(this: &WebGlRenderingContext, factor: f32, units: f32)1581 pub fn polygon_offset(this: &WebGlRenderingContext, factor: f32, units: f32); 1582 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = renderbufferStorage)] 1583 #[doc = "The `renderbufferStorage()` method."] 1584 #[doc = ""] 1585 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage)"] 1586 #[doc = ""] 1587 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] renderbuffer_storage( this: &WebGlRenderingContext, target: u32, internalformat: u32, width: i32, height: i32, )1588 pub fn renderbuffer_storage( 1589 this: &WebGlRenderingContext, 1590 target: u32, 1591 internalformat: u32, 1592 width: i32, 1593 height: i32, 1594 ); 1595 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = sampleCoverage)] 1596 #[doc = "The `sampleCoverage()` method."] 1597 #[doc = ""] 1598 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage)"] 1599 #[doc = ""] 1600 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] sample_coverage(this: &WebGlRenderingContext, value: f32, invert: bool)1601 pub fn sample_coverage(this: &WebGlRenderingContext, value: f32, invert: bool); 1602 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = scissor)] 1603 #[doc = "The `scissor()` method."] 1604 #[doc = ""] 1605 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor)"] 1606 #[doc = ""] 1607 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] scissor(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32)1608 pub fn scissor(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); 1609 #[cfg(feature = "WebGlShader")] 1610 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = shaderSource)] 1611 #[doc = "The `shaderSource()` method."] 1612 #[doc = ""] 1613 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource)"] 1614 #[doc = ""] 1615 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] shader_source(this: &WebGlRenderingContext, shader: &WebGlShader, source: &str)1616 pub fn shader_source(this: &WebGlRenderingContext, shader: &WebGlShader, source: &str); 1617 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFunc)] 1618 #[doc = "The `stencilFunc()` method."] 1619 #[doc = ""] 1620 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc)"] 1621 #[doc = ""] 1622 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_func(this: &WebGlRenderingContext, func: u32, ref_: i32, mask: u32)1623 pub fn stencil_func(this: &WebGlRenderingContext, func: u32, ref_: i32, mask: u32); 1624 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFuncSeparate)] 1625 #[doc = "The `stencilFuncSeparate()` method."] 1626 #[doc = ""] 1627 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate)"] 1628 #[doc = ""] 1629 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_func_separate( this: &WebGlRenderingContext, face: u32, func: u32, ref_: i32, mask: u32, )1630 pub fn stencil_func_separate( 1631 this: &WebGlRenderingContext, 1632 face: u32, 1633 func: u32, 1634 ref_: i32, 1635 mask: u32, 1636 ); 1637 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMask)] 1638 #[doc = "The `stencilMask()` method."] 1639 #[doc = ""] 1640 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask)"] 1641 #[doc = ""] 1642 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_mask(this: &WebGlRenderingContext, mask: u32)1643 pub fn stencil_mask(this: &WebGlRenderingContext, mask: u32); 1644 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMaskSeparate)] 1645 #[doc = "The `stencilMaskSeparate()` method."] 1646 #[doc = ""] 1647 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate)"] 1648 #[doc = ""] 1649 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_mask_separate(this: &WebGlRenderingContext, face: u32, mask: u32)1650 pub fn stencil_mask_separate(this: &WebGlRenderingContext, face: u32, mask: u32); 1651 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOp)] 1652 #[doc = "The `stencilOp()` method."] 1653 #[doc = ""] 1654 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp)"] 1655 #[doc = ""] 1656 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_op(this: &WebGlRenderingContext, fail: u32, zfail: u32, zpass: u32)1657 pub fn stencil_op(this: &WebGlRenderingContext, fail: u32, zfail: u32, zpass: u32); 1658 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOpSeparate)] 1659 #[doc = "The `stencilOpSeparate()` method."] 1660 #[doc = ""] 1661 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate)"] 1662 #[doc = ""] 1663 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] stencil_op_separate( this: &WebGlRenderingContext, face: u32, fail: u32, zfail: u32, zpass: u32, )1664 pub fn stencil_op_separate( 1665 this: &WebGlRenderingContext, 1666 face: u32, 1667 fail: u32, 1668 zfail: u32, 1669 zpass: u32, 1670 ); 1671 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = texParameterf)] 1672 #[doc = "The `texParameterf()` method."] 1673 #[doc = ""] 1674 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameterf)"] 1675 #[doc = ""] 1676 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_parameterf(this: &WebGlRenderingContext, target: u32, pname: u32, param: f32)1677 pub fn tex_parameterf(this: &WebGlRenderingContext, target: u32, pname: u32, param: f32); 1678 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = texParameteri)] 1679 #[doc = "The `texParameteri()` method."] 1680 #[doc = ""] 1681 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameteri)"] 1682 #[doc = ""] 1683 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] tex_parameteri(this: &WebGlRenderingContext, target: u32, pname: u32, param: i32)1684 pub fn tex_parameteri(this: &WebGlRenderingContext, target: u32, pname: u32, param: i32); 1685 #[cfg(feature = "WebGlUniformLocation")] 1686 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1f)] 1687 #[doc = "The `uniform1f()` method."] 1688 #[doc = ""] 1689 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1f)"] 1690 #[doc = ""] 1691 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1f(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32)1692 pub fn uniform1f(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32); 1693 #[cfg(feature = "WebGlUniformLocation")] 1694 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1i)] 1695 #[doc = "The `uniform1i()` method."] 1696 #[doc = ""] 1697 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1i)"] 1698 #[doc = ""] 1699 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform1i(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32)1700 pub fn uniform1i(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32); 1701 #[cfg(feature = "WebGlUniformLocation")] 1702 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2f)] 1703 #[doc = "The `uniform2f()` method."] 1704 #[doc = ""] 1705 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2f)"] 1706 #[doc = ""] 1707 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2f( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32, y: f32, )1708 pub fn uniform2f( 1709 this: &WebGlRenderingContext, 1710 location: Option<&WebGlUniformLocation>, 1711 x: f32, 1712 y: f32, 1713 ); 1714 #[cfg(feature = "WebGlUniformLocation")] 1715 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2i)] 1716 #[doc = "The `uniform2i()` method."] 1717 #[doc = ""] 1718 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2i)"] 1719 #[doc = ""] 1720 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform2i( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32, y: i32, )1721 pub fn uniform2i( 1722 this: &WebGlRenderingContext, 1723 location: Option<&WebGlUniformLocation>, 1724 x: i32, 1725 y: i32, 1726 ); 1727 #[cfg(feature = "WebGlUniformLocation")] 1728 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3f)] 1729 #[doc = "The `uniform3f()` method."] 1730 #[doc = ""] 1731 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3f)"] 1732 #[doc = ""] 1733 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3f( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32, y: f32, z: f32, )1734 pub fn uniform3f( 1735 this: &WebGlRenderingContext, 1736 location: Option<&WebGlUniformLocation>, 1737 x: f32, 1738 y: f32, 1739 z: f32, 1740 ); 1741 #[cfg(feature = "WebGlUniformLocation")] 1742 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3i)] 1743 #[doc = "The `uniform3i()` method."] 1744 #[doc = ""] 1745 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3i)"] 1746 #[doc = ""] 1747 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform3i( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32, y: i32, z: i32, )1748 pub fn uniform3i( 1749 this: &WebGlRenderingContext, 1750 location: Option<&WebGlUniformLocation>, 1751 x: i32, 1752 y: i32, 1753 z: i32, 1754 ); 1755 #[cfg(feature = "WebGlUniformLocation")] 1756 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4f)] 1757 #[doc = "The `uniform4f()` method."] 1758 #[doc = ""] 1759 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4f)"] 1760 #[doc = ""] 1761 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4f( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32, y: f32, z: f32, w: f32, )1762 pub fn uniform4f( 1763 this: &WebGlRenderingContext, 1764 location: Option<&WebGlUniformLocation>, 1765 x: f32, 1766 y: f32, 1767 z: f32, 1768 w: f32, 1769 ); 1770 #[cfg(feature = "WebGlUniformLocation")] 1771 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4i)] 1772 #[doc = "The `uniform4i()` method."] 1773 #[doc = ""] 1774 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4i)"] 1775 #[doc = ""] 1776 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] uniform4i( this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32, y: i32, z: i32, w: i32, )1777 pub fn uniform4i( 1778 this: &WebGlRenderingContext, 1779 location: Option<&WebGlUniformLocation>, 1780 x: i32, 1781 y: i32, 1782 z: i32, 1783 w: i32, 1784 ); 1785 #[cfg(feature = "WebGlProgram")] 1786 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = useProgram)] 1787 #[doc = "The `useProgram()` method."] 1788 #[doc = ""] 1789 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram)"] 1790 #[doc = ""] 1791 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] use_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>)1792 pub fn use_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); 1793 #[cfg(feature = "WebGlProgram")] 1794 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = validateProgram)] 1795 #[doc = "The `validateProgram()` method."] 1796 #[doc = ""] 1797 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram)"] 1798 #[doc = ""] 1799 #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] validate_program(this: &WebGlRenderingContext, program: &WebGlProgram)1800 pub fn validate_program(this: &WebGlRenderingContext, program: &WebGlProgram); 1801 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1f)] 1802 #[doc = "The `vertexAttrib1f()` method."] 1803 #[doc = ""] 1804 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1f)"] 1805 #[doc = ""] 1806 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib1f(this: &WebGlRenderingContext, indx: u32, x: f32)1807 pub fn vertex_attrib1f(this: &WebGlRenderingContext, indx: u32, x: f32); 1808 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv)] 1809 #[doc = "The `vertexAttrib1fv()` method."] 1810 #[doc = ""] 1811 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] 1812 #[doc = ""] 1813 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib1fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32])1814 pub fn vertex_attrib1fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); 1815 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv)] 1816 #[doc = "The `vertexAttrib1fv()` method."] 1817 #[doc = ""] 1818 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] 1819 #[doc = ""] 1820 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib1fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, )1821 pub fn vertex_attrib1fv_with_f32_sequence( 1822 this: &WebGlRenderingContext, 1823 indx: u32, 1824 values: &::wasm_bindgen::JsValue, 1825 ); 1826 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2f)] 1827 #[doc = "The `vertexAttrib2f()` method."] 1828 #[doc = ""] 1829 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2f)"] 1830 #[doc = ""] 1831 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32)1832 pub fn vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32); 1833 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] 1834 #[doc = "The `vertexAttrib2fv()` method."] 1835 #[doc = ""] 1836 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] 1837 #[doc = ""] 1838 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32])1839 pub fn vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); 1840 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv)] 1841 #[doc = "The `vertexAttrib2fv()` method."] 1842 #[doc = ""] 1843 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] 1844 #[doc = ""] 1845 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib2fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, )1846 pub fn vertex_attrib2fv_with_f32_sequence( 1847 this: &WebGlRenderingContext, 1848 indx: u32, 1849 values: &::wasm_bindgen::JsValue, 1850 ); 1851 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3f)] 1852 #[doc = "The `vertexAttrib3f()` method."] 1853 #[doc = ""] 1854 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3f)"] 1855 #[doc = ""] 1856 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32)1857 pub fn vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32); 1858 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] 1859 #[doc = "The `vertexAttrib3fv()` method."] 1860 #[doc = ""] 1861 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] 1862 #[doc = ""] 1863 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32])1864 pub fn vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); 1865 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv)] 1866 #[doc = "The `vertexAttrib3fv()` method."] 1867 #[doc = ""] 1868 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] 1869 #[doc = ""] 1870 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib3fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, )1871 pub fn vertex_attrib3fv_with_f32_sequence( 1872 this: &WebGlRenderingContext, 1873 indx: u32, 1874 values: &::wasm_bindgen::JsValue, 1875 ); 1876 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4f)] 1877 #[doc = "The `vertexAttrib4f()` method."] 1878 #[doc = ""] 1879 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4f)"] 1880 #[doc = ""] 1881 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32)1882 pub fn vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32); 1883 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] 1884 #[doc = "The `vertexAttrib4fv()` method."] 1885 #[doc = ""] 1886 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] 1887 #[doc = ""] 1888 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32])1889 pub fn vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); 1890 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv)] 1891 #[doc = "The `vertexAttrib4fv()` method."] 1892 #[doc = ""] 1893 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] 1894 #[doc = ""] 1895 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib4fv_with_f32_sequence( this: &WebGlRenderingContext, indx: u32, values: &::wasm_bindgen::JsValue, )1896 pub fn vertex_attrib4fv_with_f32_sequence( 1897 this: &WebGlRenderingContext, 1898 indx: u32, 1899 values: &::wasm_bindgen::JsValue, 1900 ); 1901 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] 1902 #[doc = "The `vertexAttribPointer()` method."] 1903 #[doc = ""] 1904 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] 1905 #[doc = ""] 1906 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib_pointer_with_i32( this: &WebGlRenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: i32, )1907 pub fn vertex_attrib_pointer_with_i32( 1908 this: &WebGlRenderingContext, 1909 indx: u32, 1910 size: i32, 1911 type_: u32, 1912 normalized: bool, 1913 stride: i32, 1914 offset: i32, 1915 ); 1916 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer)] 1917 #[doc = "The `vertexAttribPointer()` method."] 1918 #[doc = ""] 1919 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] 1920 #[doc = ""] 1921 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] vertex_attrib_pointer_with_f64( this: &WebGlRenderingContext, indx: u32, size: i32, type_: u32, normalized: bool, stride: i32, offset: f64, )1922 pub fn vertex_attrib_pointer_with_f64( 1923 this: &WebGlRenderingContext, 1924 indx: u32, 1925 size: i32, 1926 type_: u32, 1927 normalized: bool, 1928 stride: i32, 1929 offset: f64, 1930 ); 1931 # [wasm_bindgen (method , structural , js_class = "WebGLRenderingContext" , js_name = viewport)] 1932 #[doc = "The `viewport()` method."] 1933 #[doc = ""] 1934 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport)"] 1935 #[doc = ""] 1936 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] viewport(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32)1937 pub fn viewport(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); 1938 } 1939 impl WebGlRenderingContext { 1940 #[doc = "The `WebGLRenderingContext.DEPTH_BUFFER_BIT` const."] 1941 #[doc = ""] 1942 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1943 pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32; 1944 #[doc = "The `WebGLRenderingContext.STENCIL_BUFFER_BIT` const."] 1945 #[doc = ""] 1946 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1947 pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32; 1948 #[doc = "The `WebGLRenderingContext.COLOR_BUFFER_BIT` const."] 1949 #[doc = ""] 1950 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1951 pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32; 1952 #[doc = "The `WebGLRenderingContext.POINTS` const."] 1953 #[doc = ""] 1954 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1955 pub const POINTS: u32 = 0u64 as u32; 1956 #[doc = "The `WebGLRenderingContext.LINES` const."] 1957 #[doc = ""] 1958 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1959 pub const LINES: u32 = 1u64 as u32; 1960 #[doc = "The `WebGLRenderingContext.LINE_LOOP` const."] 1961 #[doc = ""] 1962 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1963 pub const LINE_LOOP: u32 = 2u64 as u32; 1964 #[doc = "The `WebGLRenderingContext.LINE_STRIP` const."] 1965 #[doc = ""] 1966 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1967 pub const LINE_STRIP: u32 = 3u64 as u32; 1968 #[doc = "The `WebGLRenderingContext.TRIANGLES` const."] 1969 #[doc = ""] 1970 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1971 pub const TRIANGLES: u32 = 4u64 as u32; 1972 #[doc = "The `WebGLRenderingContext.TRIANGLE_STRIP` const."] 1973 #[doc = ""] 1974 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1975 pub const TRIANGLE_STRIP: u32 = 5u64 as u32; 1976 #[doc = "The `WebGLRenderingContext.TRIANGLE_FAN` const."] 1977 #[doc = ""] 1978 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1979 pub const TRIANGLE_FAN: u32 = 6u64 as u32; 1980 #[doc = "The `WebGLRenderingContext.ZERO` const."] 1981 #[doc = ""] 1982 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1983 pub const ZERO: u32 = 0i64 as u32; 1984 #[doc = "The `WebGLRenderingContext.ONE` const."] 1985 #[doc = ""] 1986 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1987 pub const ONE: u32 = 1u64 as u32; 1988 #[doc = "The `WebGLRenderingContext.SRC_COLOR` const."] 1989 #[doc = ""] 1990 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1991 pub const SRC_COLOR: u32 = 768u64 as u32; 1992 #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_COLOR` const."] 1993 #[doc = ""] 1994 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1995 pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32; 1996 #[doc = "The `WebGLRenderingContext.SRC_ALPHA` const."] 1997 #[doc = ""] 1998 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 1999 pub const SRC_ALPHA: u32 = 770u64 as u32; 2000 #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_ALPHA` const."] 2001 #[doc = ""] 2002 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2003 pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32; 2004 #[doc = "The `WebGLRenderingContext.DST_ALPHA` const."] 2005 #[doc = ""] 2006 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2007 pub const DST_ALPHA: u32 = 772u64 as u32; 2008 #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_ALPHA` const."] 2009 #[doc = ""] 2010 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2011 pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32; 2012 #[doc = "The `WebGLRenderingContext.DST_COLOR` const."] 2013 #[doc = ""] 2014 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2015 pub const DST_COLOR: u32 = 774u64 as u32; 2016 #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_COLOR` const."] 2017 #[doc = ""] 2018 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2019 pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32; 2020 #[doc = "The `WebGLRenderingContext.SRC_ALPHA_SATURATE` const."] 2021 #[doc = ""] 2022 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2023 pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32; 2024 #[doc = "The `WebGLRenderingContext.FUNC_ADD` const."] 2025 #[doc = ""] 2026 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2027 pub const FUNC_ADD: u32 = 32774u64 as u32; 2028 #[doc = "The `WebGLRenderingContext.BLEND_EQUATION` const."] 2029 #[doc = ""] 2030 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2031 pub const BLEND_EQUATION: u32 = 32777u64 as u32; 2032 #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_RGB` const."] 2033 #[doc = ""] 2034 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2035 pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32; 2036 #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_ALPHA` const."] 2037 #[doc = ""] 2038 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2039 pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32; 2040 #[doc = "The `WebGLRenderingContext.FUNC_SUBTRACT` const."] 2041 #[doc = ""] 2042 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2043 pub const FUNC_SUBTRACT: u32 = 32778u64 as u32; 2044 #[doc = "The `WebGLRenderingContext.FUNC_REVERSE_SUBTRACT` const."] 2045 #[doc = ""] 2046 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2047 pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32; 2048 #[doc = "The `WebGLRenderingContext.BLEND_DST_RGB` const."] 2049 #[doc = ""] 2050 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2051 pub const BLEND_DST_RGB: u32 = 32968u64 as u32; 2052 #[doc = "The `WebGLRenderingContext.BLEND_SRC_RGB` const."] 2053 #[doc = ""] 2054 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2055 pub const BLEND_SRC_RGB: u32 = 32969u64 as u32; 2056 #[doc = "The `WebGLRenderingContext.BLEND_DST_ALPHA` const."] 2057 #[doc = ""] 2058 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2059 pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32; 2060 #[doc = "The `WebGLRenderingContext.BLEND_SRC_ALPHA` const."] 2061 #[doc = ""] 2062 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2063 pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32; 2064 #[doc = "The `WebGLRenderingContext.CONSTANT_COLOR` const."] 2065 #[doc = ""] 2066 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2067 pub const CONSTANT_COLOR: u32 = 32769u64 as u32; 2068 #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR` const."] 2069 #[doc = ""] 2070 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2071 pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32; 2072 #[doc = "The `WebGLRenderingContext.CONSTANT_ALPHA` const."] 2073 #[doc = ""] 2074 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2075 pub const CONSTANT_ALPHA: u32 = 32771u64 as u32; 2076 #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."] 2077 #[doc = ""] 2078 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2079 pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32; 2080 #[doc = "The `WebGLRenderingContext.BLEND_COLOR` const."] 2081 #[doc = ""] 2082 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2083 pub const BLEND_COLOR: u32 = 32773u64 as u32; 2084 #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER` const."] 2085 #[doc = ""] 2086 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2087 pub const ARRAY_BUFFER: u32 = 34962u64 as u32; 2088 #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER` const."] 2089 #[doc = ""] 2090 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2091 pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32; 2092 #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER_BINDING` const."] 2093 #[doc = ""] 2094 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2095 pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32; 2096 #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."] 2097 #[doc = ""] 2098 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2099 pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32; 2100 #[doc = "The `WebGLRenderingContext.STREAM_DRAW` const."] 2101 #[doc = ""] 2102 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2103 pub const STREAM_DRAW: u32 = 35040u64 as u32; 2104 #[doc = "The `WebGLRenderingContext.STATIC_DRAW` const."] 2105 #[doc = ""] 2106 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2107 pub const STATIC_DRAW: u32 = 35044u64 as u32; 2108 #[doc = "The `WebGLRenderingContext.DYNAMIC_DRAW` const."] 2109 #[doc = ""] 2110 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2111 pub const DYNAMIC_DRAW: u32 = 35048u64 as u32; 2112 #[doc = "The `WebGLRenderingContext.BUFFER_SIZE` const."] 2113 #[doc = ""] 2114 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2115 pub const BUFFER_SIZE: u32 = 34660u64 as u32; 2116 #[doc = "The `WebGLRenderingContext.BUFFER_USAGE` const."] 2117 #[doc = ""] 2118 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2119 pub const BUFFER_USAGE: u32 = 34661u64 as u32; 2120 #[doc = "The `WebGLRenderingContext.CURRENT_VERTEX_ATTRIB` const."] 2121 #[doc = ""] 2122 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2123 pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32; 2124 #[doc = "The `WebGLRenderingContext.FRONT` const."] 2125 #[doc = ""] 2126 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2127 pub const FRONT: u32 = 1028u64 as u32; 2128 #[doc = "The `WebGLRenderingContext.BACK` const."] 2129 #[doc = ""] 2130 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2131 pub const BACK: u32 = 1029u64 as u32; 2132 #[doc = "The `WebGLRenderingContext.FRONT_AND_BACK` const."] 2133 #[doc = ""] 2134 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2135 pub const FRONT_AND_BACK: u32 = 1032u64 as u32; 2136 #[doc = "The `WebGLRenderingContext.CULL_FACE` const."] 2137 #[doc = ""] 2138 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2139 pub const CULL_FACE: u32 = 2884u64 as u32; 2140 #[doc = "The `WebGLRenderingContext.BLEND` const."] 2141 #[doc = ""] 2142 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2143 pub const BLEND: u32 = 3042u64 as u32; 2144 #[doc = "The `WebGLRenderingContext.DITHER` const."] 2145 #[doc = ""] 2146 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2147 pub const DITHER: u32 = 3024u64 as u32; 2148 #[doc = "The `WebGLRenderingContext.STENCIL_TEST` const."] 2149 #[doc = ""] 2150 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2151 pub const STENCIL_TEST: u32 = 2960u64 as u32; 2152 #[doc = "The `WebGLRenderingContext.DEPTH_TEST` const."] 2153 #[doc = ""] 2154 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2155 pub const DEPTH_TEST: u32 = 2929u64 as u32; 2156 #[doc = "The `WebGLRenderingContext.SCISSOR_TEST` const."] 2157 #[doc = ""] 2158 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2159 pub const SCISSOR_TEST: u32 = 3089u64 as u32; 2160 #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FILL` const."] 2161 #[doc = ""] 2162 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2163 pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32; 2164 #[doc = "The `WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."] 2165 #[doc = ""] 2166 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2167 pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32; 2168 #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE` const."] 2169 #[doc = ""] 2170 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2171 pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32; 2172 #[doc = "The `WebGLRenderingContext.NO_ERROR` const."] 2173 #[doc = ""] 2174 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2175 pub const NO_ERROR: u32 = 0i64 as u32; 2176 #[doc = "The `WebGLRenderingContext.INVALID_ENUM` const."] 2177 #[doc = ""] 2178 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2179 pub const INVALID_ENUM: u32 = 1280u64 as u32; 2180 #[doc = "The `WebGLRenderingContext.INVALID_VALUE` const."] 2181 #[doc = ""] 2182 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2183 pub const INVALID_VALUE: u32 = 1281u64 as u32; 2184 #[doc = "The `WebGLRenderingContext.INVALID_OPERATION` const."] 2185 #[doc = ""] 2186 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2187 pub const INVALID_OPERATION: u32 = 1282u64 as u32; 2188 #[doc = "The `WebGLRenderingContext.OUT_OF_MEMORY` const."] 2189 #[doc = ""] 2190 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2191 pub const OUT_OF_MEMORY: u32 = 1285u64 as u32; 2192 #[doc = "The `WebGLRenderingContext.CW` const."] 2193 #[doc = ""] 2194 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2195 pub const CW: u32 = 2304u64 as u32; 2196 #[doc = "The `WebGLRenderingContext.CCW` const."] 2197 #[doc = ""] 2198 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2199 pub const CCW: u32 = 2305u64 as u32; 2200 #[doc = "The `WebGLRenderingContext.LINE_WIDTH` const."] 2201 #[doc = ""] 2202 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2203 pub const LINE_WIDTH: u32 = 2849u64 as u32; 2204 #[doc = "The `WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE` const."] 2205 #[doc = ""] 2206 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2207 pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32; 2208 #[doc = "The `WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE` const."] 2209 #[doc = ""] 2210 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2211 pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32; 2212 #[doc = "The `WebGLRenderingContext.CULL_FACE_MODE` const."] 2213 #[doc = ""] 2214 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2215 pub const CULL_FACE_MODE: u32 = 2885u64 as u32; 2216 #[doc = "The `WebGLRenderingContext.FRONT_FACE` const."] 2217 #[doc = ""] 2218 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2219 pub const FRONT_FACE: u32 = 2886u64 as u32; 2220 #[doc = "The `WebGLRenderingContext.DEPTH_RANGE` const."] 2221 #[doc = ""] 2222 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2223 pub const DEPTH_RANGE: u32 = 2928u64 as u32; 2224 #[doc = "The `WebGLRenderingContext.DEPTH_WRITEMASK` const."] 2225 #[doc = ""] 2226 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2227 pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32; 2228 #[doc = "The `WebGLRenderingContext.DEPTH_CLEAR_VALUE` const."] 2229 #[doc = ""] 2230 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2231 pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32; 2232 #[doc = "The `WebGLRenderingContext.DEPTH_FUNC` const."] 2233 #[doc = ""] 2234 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2235 pub const DEPTH_FUNC: u32 = 2932u64 as u32; 2236 #[doc = "The `WebGLRenderingContext.STENCIL_CLEAR_VALUE` const."] 2237 #[doc = ""] 2238 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2239 pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32; 2240 #[doc = "The `WebGLRenderingContext.STENCIL_FUNC` const."] 2241 #[doc = ""] 2242 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2243 pub const STENCIL_FUNC: u32 = 2962u64 as u32; 2244 #[doc = "The `WebGLRenderingContext.STENCIL_FAIL` const."] 2245 #[doc = ""] 2246 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2247 pub const STENCIL_FAIL: u32 = 2964u64 as u32; 2248 #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL` const."] 2249 #[doc = ""] 2250 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2251 pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32; 2252 #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS` const."] 2253 #[doc = ""] 2254 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2255 pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32; 2256 #[doc = "The `WebGLRenderingContext.STENCIL_REF` const."] 2257 #[doc = ""] 2258 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2259 pub const STENCIL_REF: u32 = 2967u64 as u32; 2260 #[doc = "The `WebGLRenderingContext.STENCIL_VALUE_MASK` const."] 2261 #[doc = ""] 2262 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2263 pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32; 2264 #[doc = "The `WebGLRenderingContext.STENCIL_WRITEMASK` const."] 2265 #[doc = ""] 2266 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2267 pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32; 2268 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FUNC` const."] 2269 #[doc = ""] 2270 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2271 pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32; 2272 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FAIL` const."] 2273 #[doc = ""] 2274 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2275 pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32; 2276 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."] 2277 #[doc = ""] 2278 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2279 pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32; 2280 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."] 2281 #[doc = ""] 2282 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2283 pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32; 2284 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_REF` const."] 2285 #[doc = ""] 2286 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2287 pub const STENCIL_BACK_REF: u32 = 36003u64 as u32; 2288 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_VALUE_MASK` const."] 2289 #[doc = ""] 2290 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2291 pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32; 2292 #[doc = "The `WebGLRenderingContext.STENCIL_BACK_WRITEMASK` const."] 2293 #[doc = ""] 2294 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2295 pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32; 2296 #[doc = "The `WebGLRenderingContext.VIEWPORT` const."] 2297 #[doc = ""] 2298 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2299 pub const VIEWPORT: u32 = 2978u64 as u32; 2300 #[doc = "The `WebGLRenderingContext.SCISSOR_BOX` const."] 2301 #[doc = ""] 2302 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2303 pub const SCISSOR_BOX: u32 = 3088u64 as u32; 2304 #[doc = "The `WebGLRenderingContext.COLOR_CLEAR_VALUE` const."] 2305 #[doc = ""] 2306 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2307 pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32; 2308 #[doc = "The `WebGLRenderingContext.COLOR_WRITEMASK` const."] 2309 #[doc = ""] 2310 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2311 pub const COLOR_WRITEMASK: u32 = 3107u64 as u32; 2312 #[doc = "The `WebGLRenderingContext.UNPACK_ALIGNMENT` const."] 2313 #[doc = ""] 2314 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2315 pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32; 2316 #[doc = "The `WebGLRenderingContext.PACK_ALIGNMENT` const."] 2317 #[doc = ""] 2318 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2319 pub const PACK_ALIGNMENT: u32 = 3333u64 as u32; 2320 #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_SIZE` const."] 2321 #[doc = ""] 2322 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2323 pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32; 2324 #[doc = "The `WebGLRenderingContext.MAX_VIEWPORT_DIMS` const."] 2325 #[doc = ""] 2326 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2327 pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32; 2328 #[doc = "The `WebGLRenderingContext.SUBPIXEL_BITS` const."] 2329 #[doc = ""] 2330 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2331 pub const SUBPIXEL_BITS: u32 = 3408u64 as u32; 2332 #[doc = "The `WebGLRenderingContext.RED_BITS` const."] 2333 #[doc = ""] 2334 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2335 pub const RED_BITS: u32 = 3410u64 as u32; 2336 #[doc = "The `WebGLRenderingContext.GREEN_BITS` const."] 2337 #[doc = ""] 2338 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2339 pub const GREEN_BITS: u32 = 3411u64 as u32; 2340 #[doc = "The `WebGLRenderingContext.BLUE_BITS` const."] 2341 #[doc = ""] 2342 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2343 pub const BLUE_BITS: u32 = 3412u64 as u32; 2344 #[doc = "The `WebGLRenderingContext.ALPHA_BITS` const."] 2345 #[doc = ""] 2346 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2347 pub const ALPHA_BITS: u32 = 3413u64 as u32; 2348 #[doc = "The `WebGLRenderingContext.DEPTH_BITS` const."] 2349 #[doc = ""] 2350 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2351 pub const DEPTH_BITS: u32 = 3414u64 as u32; 2352 #[doc = "The `WebGLRenderingContext.STENCIL_BITS` const."] 2353 #[doc = ""] 2354 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2355 pub const STENCIL_BITS: u32 = 3415u64 as u32; 2356 #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_UNITS` const."] 2357 #[doc = ""] 2358 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2359 pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32; 2360 #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FACTOR` const."] 2361 #[doc = ""] 2362 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2363 pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32; 2364 #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_2D` const."] 2365 #[doc = ""] 2366 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2367 pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32; 2368 #[doc = "The `WebGLRenderingContext.SAMPLE_BUFFERS` const."] 2369 #[doc = ""] 2370 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2371 pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32; 2372 #[doc = "The `WebGLRenderingContext.SAMPLES` const."] 2373 #[doc = ""] 2374 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2375 pub const SAMPLES: u32 = 32937u64 as u32; 2376 #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_VALUE` const."] 2377 #[doc = ""] 2378 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2379 pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32; 2380 #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_INVERT` const."] 2381 #[doc = ""] 2382 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2383 pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32; 2384 #[doc = "The `WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS` const."] 2385 #[doc = ""] 2386 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2387 pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32; 2388 #[doc = "The `WebGLRenderingContext.DONT_CARE` const."] 2389 #[doc = ""] 2390 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2391 pub const DONT_CARE: u32 = 4352u64 as u32; 2392 #[doc = "The `WebGLRenderingContext.FASTEST` const."] 2393 #[doc = ""] 2394 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2395 pub const FASTEST: u32 = 4353u64 as u32; 2396 #[doc = "The `WebGLRenderingContext.NICEST` const."] 2397 #[doc = ""] 2398 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2399 pub const NICEST: u32 = 4354u64 as u32; 2400 #[doc = "The `WebGLRenderingContext.GENERATE_MIPMAP_HINT` const."] 2401 #[doc = ""] 2402 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2403 pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32; 2404 #[doc = "The `WebGLRenderingContext.BYTE` const."] 2405 #[doc = ""] 2406 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2407 pub const BYTE: u32 = 5120u64 as u32; 2408 #[doc = "The `WebGLRenderingContext.UNSIGNED_BYTE` const."] 2409 #[doc = ""] 2410 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2411 pub const UNSIGNED_BYTE: u32 = 5121u64 as u32; 2412 #[doc = "The `WebGLRenderingContext.SHORT` const."] 2413 #[doc = ""] 2414 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2415 pub const SHORT: u32 = 5122u64 as u32; 2416 #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT` const."] 2417 #[doc = ""] 2418 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2419 pub const UNSIGNED_SHORT: u32 = 5123u64 as u32; 2420 #[doc = "The `WebGLRenderingContext.INT` const."] 2421 #[doc = ""] 2422 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2423 pub const INT: u32 = 5124u64 as u32; 2424 #[doc = "The `WebGLRenderingContext.UNSIGNED_INT` const."] 2425 #[doc = ""] 2426 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2427 pub const UNSIGNED_INT: u32 = 5125u64 as u32; 2428 #[doc = "The `WebGLRenderingContext.FLOAT` const."] 2429 #[doc = ""] 2430 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2431 pub const FLOAT: u32 = 5126u64 as u32; 2432 #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT` const."] 2433 #[doc = ""] 2434 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2435 pub const DEPTH_COMPONENT: u32 = 6402u64 as u32; 2436 #[doc = "The `WebGLRenderingContext.ALPHA` const."] 2437 #[doc = ""] 2438 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2439 pub const ALPHA: u32 = 6406u64 as u32; 2440 #[doc = "The `WebGLRenderingContext.RGB` const."] 2441 #[doc = ""] 2442 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2443 pub const RGB: u32 = 6407u64 as u32; 2444 #[doc = "The `WebGLRenderingContext.RGBA` const."] 2445 #[doc = ""] 2446 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2447 pub const RGBA: u32 = 6408u64 as u32; 2448 #[doc = "The `WebGLRenderingContext.LUMINANCE` const."] 2449 #[doc = ""] 2450 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2451 pub const LUMINANCE: u32 = 6409u64 as u32; 2452 #[doc = "The `WebGLRenderingContext.LUMINANCE_ALPHA` const."] 2453 #[doc = ""] 2454 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2455 pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32; 2456 #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4` const."] 2457 #[doc = ""] 2458 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2459 pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32; 2460 #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1` const."] 2461 #[doc = ""] 2462 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2463 pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32; 2464 #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_6_5` const."] 2465 #[doc = ""] 2466 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2467 pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32; 2468 #[doc = "The `WebGLRenderingContext.FRAGMENT_SHADER` const."] 2469 #[doc = ""] 2470 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2471 pub const FRAGMENT_SHADER: u32 = 35632u64 as u32; 2472 #[doc = "The `WebGLRenderingContext.VERTEX_SHADER` const."] 2473 #[doc = ""] 2474 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2475 pub const VERTEX_SHADER: u32 = 35633u64 as u32; 2476 #[doc = "The `WebGLRenderingContext.MAX_VERTEX_ATTRIBS` const."] 2477 #[doc = ""] 2478 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2479 pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32; 2480 #[doc = "The `WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."] 2481 #[doc = ""] 2482 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2483 pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32; 2484 #[doc = "The `WebGLRenderingContext.MAX_VARYING_VECTORS` const."] 2485 #[doc = ""] 2486 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2487 pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32; 2488 #[doc = "The `WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."] 2489 #[doc = ""] 2490 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2491 pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32; 2492 #[doc = "The `WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."] 2493 #[doc = ""] 2494 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2495 pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32; 2496 #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."] 2497 #[doc = ""] 2498 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2499 pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32; 2500 #[doc = "The `WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."] 2501 #[doc = ""] 2502 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2503 pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32; 2504 #[doc = "The `WebGLRenderingContext.SHADER_TYPE` const."] 2505 #[doc = ""] 2506 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2507 pub const SHADER_TYPE: u32 = 35663u64 as u32; 2508 #[doc = "The `WebGLRenderingContext.DELETE_STATUS` const."] 2509 #[doc = ""] 2510 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2511 pub const DELETE_STATUS: u32 = 35712u64 as u32; 2512 #[doc = "The `WebGLRenderingContext.LINK_STATUS` const."] 2513 #[doc = ""] 2514 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2515 pub const LINK_STATUS: u32 = 35714u64 as u32; 2516 #[doc = "The `WebGLRenderingContext.VALIDATE_STATUS` const."] 2517 #[doc = ""] 2518 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2519 pub const VALIDATE_STATUS: u32 = 35715u64 as u32; 2520 #[doc = "The `WebGLRenderingContext.ATTACHED_SHADERS` const."] 2521 #[doc = ""] 2522 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2523 pub const ATTACHED_SHADERS: u32 = 35717u64 as u32; 2524 #[doc = "The `WebGLRenderingContext.ACTIVE_UNIFORMS` const."] 2525 #[doc = ""] 2526 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2527 pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32; 2528 #[doc = "The `WebGLRenderingContext.ACTIVE_ATTRIBUTES` const."] 2529 #[doc = ""] 2530 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2531 pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32; 2532 #[doc = "The `WebGLRenderingContext.SHADING_LANGUAGE_VERSION` const."] 2533 #[doc = ""] 2534 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2535 pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32; 2536 #[doc = "The `WebGLRenderingContext.CURRENT_PROGRAM` const."] 2537 #[doc = ""] 2538 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2539 pub const CURRENT_PROGRAM: u32 = 35725u64 as u32; 2540 #[doc = "The `WebGLRenderingContext.NEVER` const."] 2541 #[doc = ""] 2542 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2543 pub const NEVER: u32 = 512u64 as u32; 2544 #[doc = "The `WebGLRenderingContext.LESS` const."] 2545 #[doc = ""] 2546 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2547 pub const LESS: u32 = 513u64 as u32; 2548 #[doc = "The `WebGLRenderingContext.EQUAL` const."] 2549 #[doc = ""] 2550 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2551 pub const EQUAL: u32 = 514u64 as u32; 2552 #[doc = "The `WebGLRenderingContext.LEQUAL` const."] 2553 #[doc = ""] 2554 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2555 pub const LEQUAL: u32 = 515u64 as u32; 2556 #[doc = "The `WebGLRenderingContext.GREATER` const."] 2557 #[doc = ""] 2558 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2559 pub const GREATER: u32 = 516u64 as u32; 2560 #[doc = "The `WebGLRenderingContext.NOTEQUAL` const."] 2561 #[doc = ""] 2562 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2563 pub const NOTEQUAL: u32 = 517u64 as u32; 2564 #[doc = "The `WebGLRenderingContext.GEQUAL` const."] 2565 #[doc = ""] 2566 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2567 pub const GEQUAL: u32 = 518u64 as u32; 2568 #[doc = "The `WebGLRenderingContext.ALWAYS` const."] 2569 #[doc = ""] 2570 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2571 pub const ALWAYS: u32 = 519u64 as u32; 2572 #[doc = "The `WebGLRenderingContext.KEEP` const."] 2573 #[doc = ""] 2574 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2575 pub const KEEP: u32 = 7680u64 as u32; 2576 #[doc = "The `WebGLRenderingContext.REPLACE` const."] 2577 #[doc = ""] 2578 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2579 pub const REPLACE: u32 = 7681u64 as u32; 2580 #[doc = "The `WebGLRenderingContext.INCR` const."] 2581 #[doc = ""] 2582 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2583 pub const INCR: u32 = 7682u64 as u32; 2584 #[doc = "The `WebGLRenderingContext.DECR` const."] 2585 #[doc = ""] 2586 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2587 pub const DECR: u32 = 7683u64 as u32; 2588 #[doc = "The `WebGLRenderingContext.INVERT` const."] 2589 #[doc = ""] 2590 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2591 pub const INVERT: u32 = 5386u64 as u32; 2592 #[doc = "The `WebGLRenderingContext.INCR_WRAP` const."] 2593 #[doc = ""] 2594 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2595 pub const INCR_WRAP: u32 = 34055u64 as u32; 2596 #[doc = "The `WebGLRenderingContext.DECR_WRAP` const."] 2597 #[doc = ""] 2598 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2599 pub const DECR_WRAP: u32 = 34056u64 as u32; 2600 #[doc = "The `WebGLRenderingContext.VENDOR` const."] 2601 #[doc = ""] 2602 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2603 pub const VENDOR: u32 = 7936u64 as u32; 2604 #[doc = "The `WebGLRenderingContext.RENDERER` const."] 2605 #[doc = ""] 2606 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2607 pub const RENDERER: u32 = 7937u64 as u32; 2608 #[doc = "The `WebGLRenderingContext.VERSION` const."] 2609 #[doc = ""] 2610 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2611 pub const VERSION: u32 = 7938u64 as u32; 2612 #[doc = "The `WebGLRenderingContext.NEAREST` const."] 2613 #[doc = ""] 2614 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2615 pub const NEAREST: u32 = 9728u64 as u32; 2616 #[doc = "The `WebGLRenderingContext.LINEAR` const."] 2617 #[doc = ""] 2618 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2619 pub const LINEAR: u32 = 9729u64 as u32; 2620 #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_NEAREST` const."] 2621 #[doc = ""] 2622 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2623 pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32; 2624 #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_NEAREST` const."] 2625 #[doc = ""] 2626 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2627 pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32; 2628 #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_LINEAR` const."] 2629 #[doc = ""] 2630 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2631 pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32; 2632 #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_LINEAR` const."] 2633 #[doc = ""] 2634 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2635 pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32; 2636 #[doc = "The `WebGLRenderingContext.TEXTURE_MAG_FILTER` const."] 2637 #[doc = ""] 2638 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2639 pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32; 2640 #[doc = "The `WebGLRenderingContext.TEXTURE_MIN_FILTER` const."] 2641 #[doc = ""] 2642 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2643 pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32; 2644 #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_S` const."] 2645 #[doc = ""] 2646 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2647 pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32; 2648 #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_T` const."] 2649 #[doc = ""] 2650 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2651 pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32; 2652 #[doc = "The `WebGLRenderingContext.TEXTURE_2D` const."] 2653 #[doc = ""] 2654 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2655 pub const TEXTURE_2D: u32 = 3553u64 as u32; 2656 #[doc = "The `WebGLRenderingContext.TEXTURE` const."] 2657 #[doc = ""] 2658 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2659 pub const TEXTURE: u32 = 5890u64 as u32; 2660 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP` const."] 2661 #[doc = ""] 2662 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2663 pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32; 2664 #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP` const."] 2665 #[doc = ""] 2666 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2667 pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32; 2668 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."] 2669 #[doc = ""] 2670 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2671 pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32; 2672 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."] 2673 #[doc = ""] 2674 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2675 pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32; 2676 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."] 2677 #[doc = ""] 2678 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2679 pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32; 2680 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."] 2681 #[doc = ""] 2682 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2683 pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32; 2684 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."] 2685 #[doc = ""] 2686 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2687 pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32; 2688 #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."] 2689 #[doc = ""] 2690 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2691 pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32; 2692 #[doc = "The `WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."] 2693 #[doc = ""] 2694 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2695 pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32; 2696 #[doc = "The `WebGLRenderingContext.TEXTURE0` const."] 2697 #[doc = ""] 2698 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2699 pub const TEXTURE0: u32 = 33984u64 as u32; 2700 #[doc = "The `WebGLRenderingContext.TEXTURE1` const."] 2701 #[doc = ""] 2702 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2703 pub const TEXTURE1: u32 = 33985u64 as u32; 2704 #[doc = "The `WebGLRenderingContext.TEXTURE2` const."] 2705 #[doc = ""] 2706 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2707 pub const TEXTURE2: u32 = 33986u64 as u32; 2708 #[doc = "The `WebGLRenderingContext.TEXTURE3` const."] 2709 #[doc = ""] 2710 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2711 pub const TEXTURE3: u32 = 33987u64 as u32; 2712 #[doc = "The `WebGLRenderingContext.TEXTURE4` const."] 2713 #[doc = ""] 2714 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2715 pub const TEXTURE4: u32 = 33988u64 as u32; 2716 #[doc = "The `WebGLRenderingContext.TEXTURE5` const."] 2717 #[doc = ""] 2718 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2719 pub const TEXTURE5: u32 = 33989u64 as u32; 2720 #[doc = "The `WebGLRenderingContext.TEXTURE6` const."] 2721 #[doc = ""] 2722 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2723 pub const TEXTURE6: u32 = 33990u64 as u32; 2724 #[doc = "The `WebGLRenderingContext.TEXTURE7` const."] 2725 #[doc = ""] 2726 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2727 pub const TEXTURE7: u32 = 33991u64 as u32; 2728 #[doc = "The `WebGLRenderingContext.TEXTURE8` const."] 2729 #[doc = ""] 2730 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2731 pub const TEXTURE8: u32 = 33992u64 as u32; 2732 #[doc = "The `WebGLRenderingContext.TEXTURE9` const."] 2733 #[doc = ""] 2734 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2735 pub const TEXTURE9: u32 = 33993u64 as u32; 2736 #[doc = "The `WebGLRenderingContext.TEXTURE10` const."] 2737 #[doc = ""] 2738 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2739 pub const TEXTURE10: u32 = 33994u64 as u32; 2740 #[doc = "The `WebGLRenderingContext.TEXTURE11` const."] 2741 #[doc = ""] 2742 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2743 pub const TEXTURE11: u32 = 33995u64 as u32; 2744 #[doc = "The `WebGLRenderingContext.TEXTURE12` const."] 2745 #[doc = ""] 2746 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2747 pub const TEXTURE12: u32 = 33996u64 as u32; 2748 #[doc = "The `WebGLRenderingContext.TEXTURE13` const."] 2749 #[doc = ""] 2750 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2751 pub const TEXTURE13: u32 = 33997u64 as u32; 2752 #[doc = "The `WebGLRenderingContext.TEXTURE14` const."] 2753 #[doc = ""] 2754 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2755 pub const TEXTURE14: u32 = 33998u64 as u32; 2756 #[doc = "The `WebGLRenderingContext.TEXTURE15` const."] 2757 #[doc = ""] 2758 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2759 pub const TEXTURE15: u32 = 33999u64 as u32; 2760 #[doc = "The `WebGLRenderingContext.TEXTURE16` const."] 2761 #[doc = ""] 2762 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2763 pub const TEXTURE16: u32 = 34000u64 as u32; 2764 #[doc = "The `WebGLRenderingContext.TEXTURE17` const."] 2765 #[doc = ""] 2766 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2767 pub const TEXTURE17: u32 = 34001u64 as u32; 2768 #[doc = "The `WebGLRenderingContext.TEXTURE18` const."] 2769 #[doc = ""] 2770 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2771 pub const TEXTURE18: u32 = 34002u64 as u32; 2772 #[doc = "The `WebGLRenderingContext.TEXTURE19` const."] 2773 #[doc = ""] 2774 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2775 pub const TEXTURE19: u32 = 34003u64 as u32; 2776 #[doc = "The `WebGLRenderingContext.TEXTURE20` const."] 2777 #[doc = ""] 2778 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2779 pub const TEXTURE20: u32 = 34004u64 as u32; 2780 #[doc = "The `WebGLRenderingContext.TEXTURE21` const."] 2781 #[doc = ""] 2782 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2783 pub const TEXTURE21: u32 = 34005u64 as u32; 2784 #[doc = "The `WebGLRenderingContext.TEXTURE22` const."] 2785 #[doc = ""] 2786 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2787 pub const TEXTURE22: u32 = 34006u64 as u32; 2788 #[doc = "The `WebGLRenderingContext.TEXTURE23` const."] 2789 #[doc = ""] 2790 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2791 pub const TEXTURE23: u32 = 34007u64 as u32; 2792 #[doc = "The `WebGLRenderingContext.TEXTURE24` const."] 2793 #[doc = ""] 2794 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2795 pub const TEXTURE24: u32 = 34008u64 as u32; 2796 #[doc = "The `WebGLRenderingContext.TEXTURE25` const."] 2797 #[doc = ""] 2798 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2799 pub const TEXTURE25: u32 = 34009u64 as u32; 2800 #[doc = "The `WebGLRenderingContext.TEXTURE26` const."] 2801 #[doc = ""] 2802 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2803 pub const TEXTURE26: u32 = 34010u64 as u32; 2804 #[doc = "The `WebGLRenderingContext.TEXTURE27` const."] 2805 #[doc = ""] 2806 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2807 pub const TEXTURE27: u32 = 34011u64 as u32; 2808 #[doc = "The `WebGLRenderingContext.TEXTURE28` const."] 2809 #[doc = ""] 2810 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2811 pub const TEXTURE28: u32 = 34012u64 as u32; 2812 #[doc = "The `WebGLRenderingContext.TEXTURE29` const."] 2813 #[doc = ""] 2814 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2815 pub const TEXTURE29: u32 = 34013u64 as u32; 2816 #[doc = "The `WebGLRenderingContext.TEXTURE30` const."] 2817 #[doc = ""] 2818 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2819 pub const TEXTURE30: u32 = 34014u64 as u32; 2820 #[doc = "The `WebGLRenderingContext.TEXTURE31` const."] 2821 #[doc = ""] 2822 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2823 pub const TEXTURE31: u32 = 34015u64 as u32; 2824 #[doc = "The `WebGLRenderingContext.ACTIVE_TEXTURE` const."] 2825 #[doc = ""] 2826 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2827 pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32; 2828 #[doc = "The `WebGLRenderingContext.REPEAT` const."] 2829 #[doc = ""] 2830 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2831 pub const REPEAT: u32 = 10497u64 as u32; 2832 #[doc = "The `WebGLRenderingContext.CLAMP_TO_EDGE` const."] 2833 #[doc = ""] 2834 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2835 pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32; 2836 #[doc = "The `WebGLRenderingContext.MIRRORED_REPEAT` const."] 2837 #[doc = ""] 2838 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2839 pub const MIRRORED_REPEAT: u32 = 33648u64 as u32; 2840 #[doc = "The `WebGLRenderingContext.FLOAT_VEC2` const."] 2841 #[doc = ""] 2842 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2843 pub const FLOAT_VEC2: u32 = 35664u64 as u32; 2844 #[doc = "The `WebGLRenderingContext.FLOAT_VEC3` const."] 2845 #[doc = ""] 2846 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2847 pub const FLOAT_VEC3: u32 = 35665u64 as u32; 2848 #[doc = "The `WebGLRenderingContext.FLOAT_VEC4` const."] 2849 #[doc = ""] 2850 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2851 pub const FLOAT_VEC4: u32 = 35666u64 as u32; 2852 #[doc = "The `WebGLRenderingContext.INT_VEC2` const."] 2853 #[doc = ""] 2854 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2855 pub const INT_VEC2: u32 = 35667u64 as u32; 2856 #[doc = "The `WebGLRenderingContext.INT_VEC3` const."] 2857 #[doc = ""] 2858 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2859 pub const INT_VEC3: u32 = 35668u64 as u32; 2860 #[doc = "The `WebGLRenderingContext.INT_VEC4` const."] 2861 #[doc = ""] 2862 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2863 pub const INT_VEC4: u32 = 35669u64 as u32; 2864 #[doc = "The `WebGLRenderingContext.BOOL` const."] 2865 #[doc = ""] 2866 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2867 pub const BOOL: u32 = 35670u64 as u32; 2868 #[doc = "The `WebGLRenderingContext.BOOL_VEC2` const."] 2869 #[doc = ""] 2870 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2871 pub const BOOL_VEC2: u32 = 35671u64 as u32; 2872 #[doc = "The `WebGLRenderingContext.BOOL_VEC3` const."] 2873 #[doc = ""] 2874 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2875 pub const BOOL_VEC3: u32 = 35672u64 as u32; 2876 #[doc = "The `WebGLRenderingContext.BOOL_VEC4` const."] 2877 #[doc = ""] 2878 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2879 pub const BOOL_VEC4: u32 = 35673u64 as u32; 2880 #[doc = "The `WebGLRenderingContext.FLOAT_MAT2` const."] 2881 #[doc = ""] 2882 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2883 pub const FLOAT_MAT2: u32 = 35674u64 as u32; 2884 #[doc = "The `WebGLRenderingContext.FLOAT_MAT3` const."] 2885 #[doc = ""] 2886 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2887 pub const FLOAT_MAT3: u32 = 35675u64 as u32; 2888 #[doc = "The `WebGLRenderingContext.FLOAT_MAT4` const."] 2889 #[doc = ""] 2890 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2891 pub const FLOAT_MAT4: u32 = 35676u64 as u32; 2892 #[doc = "The `WebGLRenderingContext.SAMPLER_2D` const."] 2893 #[doc = ""] 2894 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2895 pub const SAMPLER_2D: u32 = 35678u64 as u32; 2896 #[doc = "The `WebGLRenderingContext.SAMPLER_CUBE` const."] 2897 #[doc = ""] 2898 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2899 pub const SAMPLER_CUBE: u32 = 35680u64 as u32; 2900 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."] 2901 #[doc = ""] 2902 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2903 pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32; 2904 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."] 2905 #[doc = ""] 2906 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2907 pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32; 2908 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."] 2909 #[doc = ""] 2910 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2911 pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32; 2912 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."] 2913 #[doc = ""] 2914 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2915 pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32; 2916 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."] 2917 #[doc = ""] 2918 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2919 pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32; 2920 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."] 2921 #[doc = ""] 2922 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2923 pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32; 2924 #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."] 2925 #[doc = ""] 2926 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2927 pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32; 2928 #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."] 2929 #[doc = ""] 2930 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2931 pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32; 2932 #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."] 2933 #[doc = ""] 2934 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2935 pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32; 2936 #[doc = "The `WebGLRenderingContext.COMPILE_STATUS` const."] 2937 #[doc = ""] 2938 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2939 pub const COMPILE_STATUS: u32 = 35713u64 as u32; 2940 #[doc = "The `WebGLRenderingContext.LOW_FLOAT` const."] 2941 #[doc = ""] 2942 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2943 pub const LOW_FLOAT: u32 = 36336u64 as u32; 2944 #[doc = "The `WebGLRenderingContext.MEDIUM_FLOAT` const."] 2945 #[doc = ""] 2946 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2947 pub const MEDIUM_FLOAT: u32 = 36337u64 as u32; 2948 #[doc = "The `WebGLRenderingContext.HIGH_FLOAT` const."] 2949 #[doc = ""] 2950 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2951 pub const HIGH_FLOAT: u32 = 36338u64 as u32; 2952 #[doc = "The `WebGLRenderingContext.LOW_INT` const."] 2953 #[doc = ""] 2954 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2955 pub const LOW_INT: u32 = 36339u64 as u32; 2956 #[doc = "The `WebGLRenderingContext.MEDIUM_INT` const."] 2957 #[doc = ""] 2958 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2959 pub const MEDIUM_INT: u32 = 36340u64 as u32; 2960 #[doc = "The `WebGLRenderingContext.HIGH_INT` const."] 2961 #[doc = ""] 2962 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2963 pub const HIGH_INT: u32 = 36341u64 as u32; 2964 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER` const."] 2965 #[doc = ""] 2966 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2967 pub const FRAMEBUFFER: u32 = 36160u64 as u32; 2968 #[doc = "The `WebGLRenderingContext.RENDERBUFFER` const."] 2969 #[doc = ""] 2970 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2971 pub const RENDERBUFFER: u32 = 36161u64 as u32; 2972 #[doc = "The `WebGLRenderingContext.RGBA4` const."] 2973 #[doc = ""] 2974 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2975 pub const RGBA4: u32 = 32854u64 as u32; 2976 #[doc = "The `WebGLRenderingContext.RGB5_A1` const."] 2977 #[doc = ""] 2978 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2979 pub const RGB5_A1: u32 = 32855u64 as u32; 2980 #[doc = "The `WebGLRenderingContext.RGB565` const."] 2981 #[doc = ""] 2982 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2983 pub const RGB565: u32 = 36194u64 as u32; 2984 #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT16` const."] 2985 #[doc = ""] 2986 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2987 pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32; 2988 #[doc = "The `WebGLRenderingContext.STENCIL_INDEX8` const."] 2989 #[doc = ""] 2990 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2991 pub const STENCIL_INDEX8: u32 = 36168u64 as u32; 2992 #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL` const."] 2993 #[doc = ""] 2994 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2995 pub const DEPTH_STENCIL: u32 = 34041u64 as u32; 2996 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_WIDTH` const."] 2997 #[doc = ""] 2998 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 2999 pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32; 3000 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_HEIGHT` const."] 3001 #[doc = ""] 3002 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3003 pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32; 3004 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."] 3005 #[doc = ""] 3006 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3007 pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32; 3008 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_RED_SIZE` const."] 3009 #[doc = ""] 3010 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3011 pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32; 3012 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE` const."] 3013 #[doc = ""] 3014 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3015 pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32; 3016 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE` const."] 3017 #[doc = ""] 3018 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3019 pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32; 3020 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE` const."] 3021 #[doc = ""] 3022 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3023 pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32; 3024 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE` const."] 3025 #[doc = ""] 3026 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3027 pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32; 3028 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE` const."] 3029 #[doc = ""] 3030 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3031 pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32; 3032 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."] 3033 #[doc = ""] 3034 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3035 pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32; 3036 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."] 3037 #[doc = ""] 3038 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3039 pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32; 3040 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."] 3041 #[doc = ""] 3042 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3043 pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32; 3044 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."] 3045 #[doc = ""] 3046 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3047 pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32; 3048 #[doc = "The `WebGLRenderingContext.COLOR_ATTACHMENT0` const."] 3049 #[doc = ""] 3050 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3051 pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32; 3052 #[doc = "The `WebGLRenderingContext.DEPTH_ATTACHMENT` const."] 3053 #[doc = ""] 3054 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3055 pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32; 3056 #[doc = "The `WebGLRenderingContext.STENCIL_ATTACHMENT` const."] 3057 #[doc = ""] 3058 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3059 pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32; 3060 #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT` const."] 3061 #[doc = ""] 3062 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3063 pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32; 3064 #[doc = "The `WebGLRenderingContext.NONE` const."] 3065 #[doc = ""] 3066 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3067 pub const NONE: u32 = 0i64 as u32; 3068 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_COMPLETE` const."] 3069 #[doc = ""] 3070 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3071 pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32; 3072 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."] 3073 #[doc = ""] 3074 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3075 pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32; 3076 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."] 3077 #[doc = ""] 3078 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3079 pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32; 3080 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."] 3081 #[doc = ""] 3082 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3083 pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32; 3084 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED` const."] 3085 #[doc = ""] 3086 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3087 pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32; 3088 #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_BINDING` const."] 3089 #[doc = ""] 3090 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3091 pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; 3092 #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BINDING` const."] 3093 #[doc = ""] 3094 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3095 pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32; 3096 #[doc = "The `WebGLRenderingContext.MAX_RENDERBUFFER_SIZE` const."] 3097 #[doc = ""] 3098 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3099 pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32; 3100 #[doc = "The `WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."] 3101 #[doc = ""] 3102 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3103 pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32; 3104 #[doc = "The `WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL` const."] 3105 #[doc = ""] 3106 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3107 pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32; 3108 #[doc = "The `WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."] 3109 #[doc = ""] 3110 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3111 pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32; 3112 #[doc = "The `WebGLRenderingContext.CONTEXT_LOST_WEBGL` const."] 3113 #[doc = ""] 3114 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3115 pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32; 3116 #[doc = "The `WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."] 3117 #[doc = ""] 3118 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3119 pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32; 3120 #[doc = "The `WebGLRenderingContext.BROWSER_DEFAULT_WEBGL` const."] 3121 #[doc = ""] 3122 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] 3123 pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32; 3124 } 3125