1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 #[cfg(feature = "Win32_Graphics_Gdi")] 3 #[inline] 4 pub unsafe fn ChoosePixelFormat<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(hdc: Param0, ppfd: *const PIXELFORMATDESCRIPTOR) -> i32 { 5 #[cfg(windows)] 6 { 7 #[link(name = "windows")] 8 extern "system" { 9 fn ChoosePixelFormat(hdc: super::Gdi::HDC, ppfd: *const PIXELFORMATDESCRIPTOR) -> i32; 10 } 11 ::std::mem::transmute(ChoosePixelFormat(hdc.into_param().abi(), ::std::mem::transmute(ppfd))) 12 } 13 #[cfg(not(windows))] 14 unimplemented!("Unsupported target OS"); 15 } 16 #[cfg(feature = "Win32_Graphics_Gdi")] 17 #[inline] 18 pub unsafe fn DescribePixelFormat<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(hdc: Param0, ipixelformat: i32, nbytes: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> i32 { 19 #[cfg(windows)] 20 { 21 #[link(name = "windows")] 22 extern "system" { 23 fn DescribePixelFormat(hdc: super::Gdi::HDC, ipixelformat: i32, nbytes: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> i32; 24 } 25 ::std::mem::transmute(DescribePixelFormat(hdc.into_param().abi(), ::std::mem::transmute(ipixelformat), ::std::mem::transmute(nbytes), ::std::mem::transmute(ppfd))) 26 } 27 #[cfg(not(windows))] 28 unimplemented!("Unsupported target OS"); 29 } 30 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 31 #[repr(C)] 32 #[cfg(feature = "Win32_Graphics_Gdi")] 33 pub struct EMRPIXELFORMAT { 34 pub emr: super::Gdi::EMR, 35 pub pfd: PIXELFORMATDESCRIPTOR, 36 } 37 #[cfg(feature = "Win32_Graphics_Gdi")] 38 impl EMRPIXELFORMAT {} 39 #[cfg(feature = "Win32_Graphics_Gdi")] 40 impl ::std::default::Default for EMRPIXELFORMAT { 41 fn default() -> Self { 42 unsafe { ::std::mem::zeroed() } 43 } 44 } 45 #[cfg(feature = "Win32_Graphics_Gdi")] 46 impl ::std::fmt::Debug for EMRPIXELFORMAT { 47 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 48 fmt.debug_struct("EMRPIXELFORMAT").field("emr", &self.emr).field("pfd", &self.pfd).finish() 49 } 50 } 51 #[cfg(feature = "Win32_Graphics_Gdi")] 52 impl ::std::cmp::PartialEq for EMRPIXELFORMAT { 53 fn eq(&self, other: &Self) -> bool { 54 self.emr == other.emr && self.pfd == other.pfd 55 } 56 } 57 #[cfg(feature = "Win32_Graphics_Gdi")] 58 impl ::std::cmp::Eq for EMRPIXELFORMAT {} 59 #[cfg(feature = "Win32_Graphics_Gdi")] 60 unsafe impl ::windows::runtime::Abi for EMRPIXELFORMAT { 61 type Abi = Self; 62 type DefaultType = Self; 63 } 64 pub const GLU_AUTO_LOAD_MATRIX: u32 = 100200u32; 65 pub const GLU_BEGIN: u32 = 100100u32; 66 pub const GLU_CCW: u32 = 100121u32; 67 pub const GLU_CULLING: u32 = 100201u32; 68 pub const GLU_CW: u32 = 100120u32; 69 pub const GLU_DISPLAY_MODE: u32 = 100204u32; 70 pub const GLU_DOMAIN_DISTANCE: u32 = 100217u32; 71 pub const GLU_EDGE_FLAG: u32 = 100104u32; 72 pub const GLU_END: u32 = 100102u32; 73 pub const GLU_ERROR: u32 = 100103u32; 74 pub const GLU_EXTENSIONS: u32 = 100801u32; 75 pub const GLU_EXTERIOR: u32 = 100123u32; 76 pub const GLU_FALSE: u32 = 0u32; 77 pub const GLU_FILL: u32 = 100012u32; 78 pub const GLU_FLAT: u32 = 100001u32; 79 pub const GLU_INCOMPATIBLE_GL_VERSION: u32 = 100903u32; 80 pub const GLU_INSIDE: u32 = 100021u32; 81 pub const GLU_INTERIOR: u32 = 100122u32; 82 pub const GLU_INVALID_ENUM: u32 = 100900u32; 83 pub const GLU_INVALID_VALUE: u32 = 100901u32; 84 pub const GLU_LINE: u32 = 100011u32; 85 pub const GLU_MAP1_TRIM_2: u32 = 100210u32; 86 pub const GLU_MAP1_TRIM_3: u32 = 100211u32; 87 pub const GLU_NONE: u32 = 100002u32; 88 pub const GLU_NURBS_ERROR1: u32 = 100251u32; 89 pub const GLU_NURBS_ERROR10: u32 = 100260u32; 90 pub const GLU_NURBS_ERROR11: u32 = 100261u32; 91 pub const GLU_NURBS_ERROR12: u32 = 100262u32; 92 pub const GLU_NURBS_ERROR13: u32 = 100263u32; 93 pub const GLU_NURBS_ERROR14: u32 = 100264u32; 94 pub const GLU_NURBS_ERROR15: u32 = 100265u32; 95 pub const GLU_NURBS_ERROR16: u32 = 100266u32; 96 pub const GLU_NURBS_ERROR17: u32 = 100267u32; 97 pub const GLU_NURBS_ERROR18: u32 = 100268u32; 98 pub const GLU_NURBS_ERROR19: u32 = 100269u32; 99 pub const GLU_NURBS_ERROR2: u32 = 100252u32; 100 pub const GLU_NURBS_ERROR20: u32 = 100270u32; 101 pub const GLU_NURBS_ERROR21: u32 = 100271u32; 102 pub const GLU_NURBS_ERROR22: u32 = 100272u32; 103 pub const GLU_NURBS_ERROR23: u32 = 100273u32; 104 pub const GLU_NURBS_ERROR24: u32 = 100274u32; 105 pub const GLU_NURBS_ERROR25: u32 = 100275u32; 106 pub const GLU_NURBS_ERROR26: u32 = 100276u32; 107 pub const GLU_NURBS_ERROR27: u32 = 100277u32; 108 pub const GLU_NURBS_ERROR28: u32 = 100278u32; 109 pub const GLU_NURBS_ERROR29: u32 = 100279u32; 110 pub const GLU_NURBS_ERROR3: u32 = 100253u32; 111 pub const GLU_NURBS_ERROR30: u32 = 100280u32; 112 pub const GLU_NURBS_ERROR31: u32 = 100281u32; 113 pub const GLU_NURBS_ERROR32: u32 = 100282u32; 114 pub const GLU_NURBS_ERROR33: u32 = 100283u32; 115 pub const GLU_NURBS_ERROR34: u32 = 100284u32; 116 pub const GLU_NURBS_ERROR35: u32 = 100285u32; 117 pub const GLU_NURBS_ERROR36: u32 = 100286u32; 118 pub const GLU_NURBS_ERROR37: u32 = 100287u32; 119 pub const GLU_NURBS_ERROR4: u32 = 100254u32; 120 pub const GLU_NURBS_ERROR5: u32 = 100255u32; 121 pub const GLU_NURBS_ERROR6: u32 = 100256u32; 122 pub const GLU_NURBS_ERROR7: u32 = 100257u32; 123 pub const GLU_NURBS_ERROR8: u32 = 100258u32; 124 pub const GLU_NURBS_ERROR9: u32 = 100259u32; 125 pub const GLU_OUTLINE_PATCH: u32 = 100241u32; 126 pub const GLU_OUTLINE_POLYGON: u32 = 100240u32; 127 pub const GLU_OUTSIDE: u32 = 100020u32; 128 pub const GLU_OUT_OF_MEMORY: u32 = 100902u32; 129 pub const GLU_PARAMETRIC_ERROR: u32 = 100216u32; 130 pub const GLU_PARAMETRIC_TOLERANCE: u32 = 100202u32; 131 pub const GLU_PATH_LENGTH: u32 = 100215u32; 132 pub const GLU_POINT: u32 = 100010u32; 133 pub const GLU_SAMPLING_METHOD: u32 = 100205u32; 134 pub const GLU_SAMPLING_TOLERANCE: u32 = 100203u32; 135 pub const GLU_SILHOUETTE: u32 = 100013u32; 136 pub const GLU_SMOOTH: u32 = 100000u32; 137 pub const GLU_TESS_BEGIN: u32 = 100100u32; 138 pub const GLU_TESS_BEGIN_DATA: u32 = 100106u32; 139 pub const GLU_TESS_BOUNDARY_ONLY: u32 = 100141u32; 140 pub const GLU_TESS_COMBINE: u32 = 100105u32; 141 pub const GLU_TESS_COMBINE_DATA: u32 = 100111u32; 142 pub const GLU_TESS_COORD_TOO_LARGE: u32 = 100155u32; 143 pub const GLU_TESS_EDGE_FLAG: u32 = 100104u32; 144 pub const GLU_TESS_EDGE_FLAG_DATA: u32 = 100110u32; 145 pub const GLU_TESS_END: u32 = 100102u32; 146 pub const GLU_TESS_END_DATA: u32 = 100108u32; 147 pub const GLU_TESS_ERROR: u32 = 100103u32; 148 pub const GLU_TESS_ERROR1: u32 = 100151u32; 149 pub const GLU_TESS_ERROR2: u32 = 100152u32; 150 pub const GLU_TESS_ERROR3: u32 = 100153u32; 151 pub const GLU_TESS_ERROR4: u32 = 100154u32; 152 pub const GLU_TESS_ERROR5: u32 = 100155u32; 153 pub const GLU_TESS_ERROR6: u32 = 100156u32; 154 pub const GLU_TESS_ERROR7: u32 = 100157u32; 155 pub const GLU_TESS_ERROR8: u32 = 100158u32; 156 pub const GLU_TESS_ERROR_DATA: u32 = 100109u32; 157 pub const GLU_TESS_MISSING_BEGIN_CONTOUR: u32 = 100152u32; 158 pub const GLU_TESS_MISSING_BEGIN_POLYGON: u32 = 100151u32; 159 pub const GLU_TESS_MISSING_END_CONTOUR: u32 = 100154u32; 160 pub const GLU_TESS_MISSING_END_POLYGON: u32 = 100153u32; 161 pub const GLU_TESS_NEED_COMBINE_CALLBACK: u32 = 100156u32; 162 pub const GLU_TESS_TOLERANCE: u32 = 100142u32; 163 pub const GLU_TESS_VERTEX: u32 = 100101u32; 164 pub const GLU_TESS_VERTEX_DATA: u32 = 100107u32; 165 pub const GLU_TESS_WINDING_ABS_GEQ_TWO: u32 = 100134u32; 166 pub const GLU_TESS_WINDING_NEGATIVE: u32 = 100133u32; 167 pub const GLU_TESS_WINDING_NONZERO: u32 = 100131u32; 168 pub const GLU_TESS_WINDING_ODD: u32 = 100130u32; 169 pub const GLU_TESS_WINDING_POSITIVE: u32 = 100132u32; 170 pub const GLU_TESS_WINDING_RULE: u32 = 100140u32; 171 pub const GLU_TRUE: u32 = 1u32; 172 pub const GLU_UNKNOWN: u32 = 100124u32; 173 pub const GLU_U_STEP: u32 = 100206u32; 174 pub const GLU_VERSION: u32 = 100800u32; 175 pub const GLU_VERSION_1_1: u32 = 1u32; 176 pub const GLU_VERSION_1_2: u32 = 1u32; 177 pub const GLU_VERTEX: u32 = 100101u32; 178 pub const GLU_V_STEP: u32 = 100207u32; 179 #[repr(C)] 180 #[derive(:: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug, :: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy)] 181 pub struct GLUnurbs(pub u8); 182 pub type GLUnurbsErrorProc = unsafe extern "system" fn(param0: u32); 183 #[repr(C)] 184 #[derive(:: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug, :: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy)] 185 pub struct GLUquadric(pub u8); 186 pub type GLUquadricErrorProc = unsafe extern "system" fn(param0: u32); 187 pub type GLUtessBeginDataProc = unsafe extern "system" fn(param0: u32, param1: *mut ::std::ffi::c_void); 188 pub type GLUtessBeginProc = unsafe extern "system" fn(param0: u32); 189 pub type GLUtessCombineDataProc = unsafe extern "system" fn(param0: *mut f64, param1: *mut *mut ::std::ffi::c_void, param2: *mut f32, param3: *mut *mut ::std::ffi::c_void, param4: *mut ::std::ffi::c_void); 190 pub type GLUtessCombineProc = unsafe extern "system" fn(param0: *mut f64, param1: *mut *mut ::std::ffi::c_void, param2: *mut f32, param3: *mut *mut ::std::ffi::c_void); 191 pub type GLUtessEdgeFlagDataProc = unsafe extern "system" fn(param0: u8, param1: *mut ::std::ffi::c_void); 192 pub type GLUtessEdgeFlagProc = unsafe extern "system" fn(param0: u8); 193 pub type GLUtessEndDataProc = unsafe extern "system" fn(param0: *mut ::std::ffi::c_void); 194 pub type GLUtessEndProc = unsafe extern "system" fn(); 195 pub type GLUtessErrorDataProc = unsafe extern "system" fn(param0: u32, param1: *mut ::std::ffi::c_void); 196 pub type GLUtessErrorProc = unsafe extern "system" fn(param0: u32); 197 pub type GLUtessVertexDataProc = unsafe extern "system" fn(param0: *mut ::std::ffi::c_void, param1: *mut ::std::ffi::c_void); 198 pub type GLUtessVertexProc = unsafe extern "system" fn(param0: *mut ::std::ffi::c_void); 199 #[repr(C)] 200 #[derive(:: std :: clone :: Clone, :: std :: default :: Default, :: std :: fmt :: Debug, :: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: marker :: Copy)] 201 pub struct GLUtesselator(pub u8); 202 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 203 #[repr(C)] 204 pub struct GLYPHMETRICSFLOAT { 205 pub gmfBlackBoxX: f32, 206 pub gmfBlackBoxY: f32, 207 pub gmfptGlyphOrigin: POINTFLOAT, 208 pub gmfCellIncX: f32, 209 pub gmfCellIncY: f32, 210 } 211 impl GLYPHMETRICSFLOAT {} 212 impl ::std::default::Default for GLYPHMETRICSFLOAT { 213 fn default() -> Self { 214 unsafe { ::std::mem::zeroed() } 215 } 216 } 217 impl ::std::fmt::Debug for GLYPHMETRICSFLOAT { 218 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 219 fmt.debug_struct("GLYPHMETRICSFLOAT").field("gmfBlackBoxX", &self.gmfBlackBoxX).field("gmfBlackBoxY", &self.gmfBlackBoxY).field("gmfptGlyphOrigin", &self.gmfptGlyphOrigin).field("gmfCellIncX", &self.gmfCellIncX).field("gmfCellIncY", &self.gmfCellIncY).finish() 220 } 221 } 222 impl ::std::cmp::PartialEq for GLYPHMETRICSFLOAT { 223 fn eq(&self, other: &Self) -> bool { 224 self.gmfBlackBoxX == other.gmfBlackBoxX && self.gmfBlackBoxY == other.gmfBlackBoxY && self.gmfptGlyphOrigin == other.gmfptGlyphOrigin && self.gmfCellIncX == other.gmfCellIncX && self.gmfCellIncY == other.gmfCellIncY 225 } 226 } 227 impl ::std::cmp::Eq for GLYPHMETRICSFLOAT {} 228 unsafe impl ::windows::runtime::Abi for GLYPHMETRICSFLOAT { 229 type Abi = Self; 230 type DefaultType = Self; 231 } 232 pub const GL_2D: u32 = 1536u32; 233 pub const GL_2_BYTES: u32 = 5127u32; 234 pub const GL_3D: u32 = 1537u32; 235 pub const GL_3D_COLOR: u32 = 1538u32; 236 pub const GL_3D_COLOR_TEXTURE: u32 = 1539u32; 237 pub const GL_3_BYTES: u32 = 5128u32; 238 pub const GL_4D_COLOR_TEXTURE: u32 = 1540u32; 239 pub const GL_4_BYTES: u32 = 5129u32; 240 pub const GL_ACCUM: u32 = 256u32; 241 pub const GL_ACCUM_ALPHA_BITS: u32 = 3419u32; 242 pub const GL_ACCUM_BLUE_BITS: u32 = 3418u32; 243 pub const GL_ACCUM_BUFFER_BIT: u32 = 512u32; 244 pub const GL_ACCUM_CLEAR_VALUE: u32 = 2944u32; 245 pub const GL_ACCUM_GREEN_BITS: u32 = 3417u32; 246 pub const GL_ACCUM_RED_BITS: u32 = 3416u32; 247 pub const GL_ADD: u32 = 260u32; 248 pub const GL_ALL_ATTRIB_BITS: u32 = 1048575u32; 249 pub const GL_ALPHA: u32 = 6406u32; 250 pub const GL_ALPHA12: u32 = 32829u32; 251 pub const GL_ALPHA16: u32 = 32830u32; 252 pub const GL_ALPHA4: u32 = 32827u32; 253 pub const GL_ALPHA8: u32 = 32828u32; 254 pub const GL_ALPHA_BIAS: u32 = 3357u32; 255 pub const GL_ALPHA_BITS: u32 = 3413u32; 256 pub const GL_ALPHA_SCALE: u32 = 3356u32; 257 pub const GL_ALPHA_TEST: u32 = 3008u32; 258 pub const GL_ALPHA_TEST_FUNC: u32 = 3009u32; 259 pub const GL_ALPHA_TEST_REF: u32 = 3010u32; 260 pub const GL_ALWAYS: u32 = 519u32; 261 pub const GL_AMBIENT: u32 = 4608u32; 262 pub const GL_AMBIENT_AND_DIFFUSE: u32 = 5634u32; 263 pub const GL_AND: u32 = 5377u32; 264 pub const GL_AND_INVERTED: u32 = 5380u32; 265 pub const GL_AND_REVERSE: u32 = 5378u32; 266 pub const GL_ATTRIB_STACK_DEPTH: u32 = 2992u32; 267 pub const GL_AUTO_NORMAL: u32 = 3456u32; 268 pub const GL_AUX0: u32 = 1033u32; 269 pub const GL_AUX1: u32 = 1034u32; 270 pub const GL_AUX2: u32 = 1035u32; 271 pub const GL_AUX3: u32 = 1036u32; 272 pub const GL_AUX_BUFFERS: u32 = 3072u32; 273 pub const GL_BACK: u32 = 1029u32; 274 pub const GL_BACK_LEFT: u32 = 1026u32; 275 pub const GL_BACK_RIGHT: u32 = 1027u32; 276 pub const GL_BGRA_EXT: u32 = 32993u32; 277 pub const GL_BGR_EXT: u32 = 32992u32; 278 pub const GL_BITMAP: u32 = 6656u32; 279 pub const GL_BITMAP_TOKEN: u32 = 1796u32; 280 pub const GL_BLEND: u32 = 3042u32; 281 pub const GL_BLEND_DST: u32 = 3040u32; 282 pub const GL_BLEND_SRC: u32 = 3041u32; 283 pub const GL_BLUE: u32 = 6405u32; 284 pub const GL_BLUE_BIAS: u32 = 3355u32; 285 pub const GL_BLUE_BITS: u32 = 3412u32; 286 pub const GL_BLUE_SCALE: u32 = 3354u32; 287 pub const GL_BYTE: u32 = 5120u32; 288 pub const GL_C3F_V3F: u32 = 10788u32; 289 pub const GL_C4F_N3F_V3F: u32 = 10790u32; 290 pub const GL_C4UB_V2F: u32 = 10786u32; 291 pub const GL_C4UB_V3F: u32 = 10787u32; 292 pub const GL_CCW: u32 = 2305u32; 293 pub const GL_CLAMP: u32 = 10496u32; 294 pub const GL_CLEAR: u32 = 5376u32; 295 pub const GL_CLIENT_ALL_ATTRIB_BITS: u32 = 4294967295u32; 296 pub const GL_CLIENT_ATTRIB_STACK_DEPTH: u32 = 2993u32; 297 pub const GL_CLIENT_PIXEL_STORE_BIT: u32 = 1u32; 298 pub const GL_CLIENT_VERTEX_ARRAY_BIT: u32 = 2u32; 299 pub const GL_CLIP_PLANE0: u32 = 12288u32; 300 pub const GL_CLIP_PLANE1: u32 = 12289u32; 301 pub const GL_CLIP_PLANE2: u32 = 12290u32; 302 pub const GL_CLIP_PLANE3: u32 = 12291u32; 303 pub const GL_CLIP_PLANE4: u32 = 12292u32; 304 pub const GL_CLIP_PLANE5: u32 = 12293u32; 305 pub const GL_COEFF: u32 = 2560u32; 306 pub const GL_COLOR: u32 = 6144u32; 307 pub const GL_COLOR_ARRAY: u32 = 32886u32; 308 pub const GL_COLOR_ARRAY_COUNT_EXT: u32 = 32900u32; 309 pub const GL_COLOR_ARRAY_EXT: u32 = 32886u32; 310 pub const GL_COLOR_ARRAY_POINTER: u32 = 32912u32; 311 pub const GL_COLOR_ARRAY_POINTER_EXT: u32 = 32912u32; 312 pub const GL_COLOR_ARRAY_SIZE: u32 = 32897u32; 313 pub const GL_COLOR_ARRAY_SIZE_EXT: u32 = 32897u32; 314 pub const GL_COLOR_ARRAY_STRIDE: u32 = 32899u32; 315 pub const GL_COLOR_ARRAY_STRIDE_EXT: u32 = 32899u32; 316 pub const GL_COLOR_ARRAY_TYPE: u32 = 32898u32; 317 pub const GL_COLOR_ARRAY_TYPE_EXT: u32 = 32898u32; 318 pub const GL_COLOR_BUFFER_BIT: u32 = 16384u32; 319 pub const GL_COLOR_CLEAR_VALUE: u32 = 3106u32; 320 pub const GL_COLOR_INDEX: u32 = 6400u32; 321 pub const GL_COLOR_INDEX12_EXT: u32 = 32998u32; 322 pub const GL_COLOR_INDEX16_EXT: u32 = 32999u32; 323 pub const GL_COLOR_INDEX1_EXT: u32 = 32994u32; 324 pub const GL_COLOR_INDEX2_EXT: u32 = 32995u32; 325 pub const GL_COLOR_INDEX4_EXT: u32 = 32996u32; 326 pub const GL_COLOR_INDEX8_EXT: u32 = 32997u32; 327 pub const GL_COLOR_INDEXES: u32 = 5635u32; 328 pub const GL_COLOR_LOGIC_OP: u32 = 3058u32; 329 pub const GL_COLOR_MATERIAL: u32 = 2903u32; 330 pub const GL_COLOR_MATERIAL_FACE: u32 = 2901u32; 331 pub const GL_COLOR_MATERIAL_PARAMETER: u32 = 2902u32; 332 pub const GL_COLOR_TABLE_ALPHA_SIZE_EXT: u32 = 32989u32; 333 pub const GL_COLOR_TABLE_BLUE_SIZE_EXT: u32 = 32988u32; 334 pub const GL_COLOR_TABLE_FORMAT_EXT: u32 = 32984u32; 335 pub const GL_COLOR_TABLE_GREEN_SIZE_EXT: u32 = 32987u32; 336 pub const GL_COLOR_TABLE_INTENSITY_SIZE_EXT: u32 = 32991u32; 337 pub const GL_COLOR_TABLE_LUMINANCE_SIZE_EXT: u32 = 32990u32; 338 pub const GL_COLOR_TABLE_RED_SIZE_EXT: u32 = 32986u32; 339 pub const GL_COLOR_TABLE_WIDTH_EXT: u32 = 32985u32; 340 pub const GL_COLOR_WRITEMASK: u32 = 3107u32; 341 pub const GL_COMPILE: u32 = 4864u32; 342 pub const GL_COMPILE_AND_EXECUTE: u32 = 4865u32; 343 pub const GL_CONSTANT_ATTENUATION: u32 = 4615u32; 344 pub const GL_COPY: u32 = 5379u32; 345 pub const GL_COPY_INVERTED: u32 = 5388u32; 346 pub const GL_COPY_PIXEL_TOKEN: u32 = 1798u32; 347 pub const GL_CULL_FACE: u32 = 2884u32; 348 pub const GL_CULL_FACE_MODE: u32 = 2885u32; 349 pub const GL_CURRENT_BIT: u32 = 1u32; 350 pub const GL_CURRENT_COLOR: u32 = 2816u32; 351 pub const GL_CURRENT_INDEX: u32 = 2817u32; 352 pub const GL_CURRENT_NORMAL: u32 = 2818u32; 353 pub const GL_CURRENT_RASTER_COLOR: u32 = 2820u32; 354 pub const GL_CURRENT_RASTER_DISTANCE: u32 = 2825u32; 355 pub const GL_CURRENT_RASTER_INDEX: u32 = 2821u32; 356 pub const GL_CURRENT_RASTER_POSITION: u32 = 2823u32; 357 pub const GL_CURRENT_RASTER_POSITION_VALID: u32 = 2824u32; 358 pub const GL_CURRENT_RASTER_TEXTURE_COORDS: u32 = 2822u32; 359 pub const GL_CURRENT_TEXTURE_COORDS: u32 = 2819u32; 360 pub const GL_CW: u32 = 2304u32; 361 pub const GL_DECAL: u32 = 8449u32; 362 pub const GL_DECR: u32 = 7683u32; 363 pub const GL_DEPTH: u32 = 6145u32; 364 pub const GL_DEPTH_BIAS: u32 = 3359u32; 365 pub const GL_DEPTH_BITS: u32 = 3414u32; 366 pub const GL_DEPTH_BUFFER_BIT: u32 = 256u32; 367 pub const GL_DEPTH_CLEAR_VALUE: u32 = 2931u32; 368 pub const GL_DEPTH_COMPONENT: u32 = 6402u32; 369 pub const GL_DEPTH_FUNC: u32 = 2932u32; 370 pub const GL_DEPTH_RANGE: u32 = 2928u32; 371 pub const GL_DEPTH_SCALE: u32 = 3358u32; 372 pub const GL_DEPTH_TEST: u32 = 2929u32; 373 pub const GL_DEPTH_WRITEMASK: u32 = 2930u32; 374 pub const GL_DIFFUSE: u32 = 4609u32; 375 pub const GL_DITHER: u32 = 3024u32; 376 pub const GL_DOMAIN: u32 = 2562u32; 377 pub const GL_DONT_CARE: u32 = 4352u32; 378 pub const GL_DOUBLE: u32 = 5130u32; 379 pub const GL_DOUBLEBUFFER: u32 = 3122u32; 380 pub const GL_DOUBLE_EXT: u32 = 5130u32; 381 pub const GL_DRAW_BUFFER: u32 = 3073u32; 382 pub const GL_DRAW_PIXEL_TOKEN: u32 = 1797u32; 383 pub const GL_DST_ALPHA: u32 = 772u32; 384 pub const GL_DST_COLOR: u32 = 774u32; 385 pub const GL_EDGE_FLAG: u32 = 2883u32; 386 pub const GL_EDGE_FLAG_ARRAY: u32 = 32889u32; 387 pub const GL_EDGE_FLAG_ARRAY_COUNT_EXT: u32 = 32909u32; 388 pub const GL_EDGE_FLAG_ARRAY_EXT: u32 = 32889u32; 389 pub const GL_EDGE_FLAG_ARRAY_POINTER: u32 = 32915u32; 390 pub const GL_EDGE_FLAG_ARRAY_POINTER_EXT: u32 = 32915u32; 391 pub const GL_EDGE_FLAG_ARRAY_STRIDE: u32 = 32908u32; 392 pub const GL_EDGE_FLAG_ARRAY_STRIDE_EXT: u32 = 32908u32; 393 pub const GL_EMISSION: u32 = 5632u32; 394 pub const GL_ENABLE_BIT: u32 = 8192u32; 395 pub const GL_EQUAL: u32 = 514u32; 396 pub const GL_EQUIV: u32 = 5385u32; 397 pub const GL_EVAL_BIT: u32 = 65536u32; 398 pub const GL_EXP: u32 = 2048u32; 399 pub const GL_EXP2: u32 = 2049u32; 400 pub const GL_EXTENSIONS: u32 = 7939u32; 401 pub const GL_EXT_bgra: u32 = 1u32; 402 pub const GL_EXT_paletted_texture: u32 = 1u32; 403 pub const GL_EXT_vertex_array: u32 = 1u32; 404 pub const GL_EYE_LINEAR: u32 = 9216u32; 405 pub const GL_EYE_PLANE: u32 = 9474u32; 406 pub const GL_FALSE: u32 = 0u32; 407 pub const GL_FASTEST: u32 = 4353u32; 408 pub const GL_FEEDBACK: u32 = 7169u32; 409 pub const GL_FEEDBACK_BUFFER_POINTER: u32 = 3568u32; 410 pub const GL_FEEDBACK_BUFFER_SIZE: u32 = 3569u32; 411 pub const GL_FEEDBACK_BUFFER_TYPE: u32 = 3570u32; 412 pub const GL_FILL: u32 = 6914u32; 413 pub const GL_FLAT: u32 = 7424u32; 414 pub const GL_FLOAT: u32 = 5126u32; 415 pub const GL_FOG: u32 = 2912u32; 416 pub const GL_FOG_BIT: u32 = 128u32; 417 pub const GL_FOG_COLOR: u32 = 2918u32; 418 pub const GL_FOG_DENSITY: u32 = 2914u32; 419 pub const GL_FOG_END: u32 = 2916u32; 420 pub const GL_FOG_HINT: u32 = 3156u32; 421 pub const GL_FOG_INDEX: u32 = 2913u32; 422 pub const GL_FOG_MODE: u32 = 2917u32; 423 pub const GL_FOG_SPECULAR_TEXTURE_WIN: u32 = 33004u32; 424 pub const GL_FOG_START: u32 = 2915u32; 425 pub const GL_FRONT: u32 = 1028u32; 426 pub const GL_FRONT_AND_BACK: u32 = 1032u32; 427 pub const GL_FRONT_FACE: u32 = 2886u32; 428 pub const GL_FRONT_LEFT: u32 = 1024u32; 429 pub const GL_FRONT_RIGHT: u32 = 1025u32; 430 pub const GL_GEQUAL: u32 = 518u32; 431 pub const GL_GREATER: u32 = 516u32; 432 pub const GL_GREEN: u32 = 6404u32; 433 pub const GL_GREEN_BIAS: u32 = 3353u32; 434 pub const GL_GREEN_BITS: u32 = 3411u32; 435 pub const GL_GREEN_SCALE: u32 = 3352u32; 436 pub const GL_HINT_BIT: u32 = 32768u32; 437 pub const GL_INCR: u32 = 7682u32; 438 pub const GL_INDEX_ARRAY: u32 = 32887u32; 439 pub const GL_INDEX_ARRAY_COUNT_EXT: u32 = 32903u32; 440 pub const GL_INDEX_ARRAY_EXT: u32 = 32887u32; 441 pub const GL_INDEX_ARRAY_POINTER: u32 = 32913u32; 442 pub const GL_INDEX_ARRAY_POINTER_EXT: u32 = 32913u32; 443 pub const GL_INDEX_ARRAY_STRIDE: u32 = 32902u32; 444 pub const GL_INDEX_ARRAY_STRIDE_EXT: u32 = 32902u32; 445 pub const GL_INDEX_ARRAY_TYPE: u32 = 32901u32; 446 pub const GL_INDEX_ARRAY_TYPE_EXT: u32 = 32901u32; 447 pub const GL_INDEX_BITS: u32 = 3409u32; 448 pub const GL_INDEX_CLEAR_VALUE: u32 = 3104u32; 449 pub const GL_INDEX_LOGIC_OP: u32 = 3057u32; 450 pub const GL_INDEX_MODE: u32 = 3120u32; 451 pub const GL_INDEX_OFFSET: u32 = 3347u32; 452 pub const GL_INDEX_SHIFT: u32 = 3346u32; 453 pub const GL_INDEX_WRITEMASK: u32 = 3105u32; 454 pub const GL_INT: u32 = 5124u32; 455 pub const GL_INTENSITY: u32 = 32841u32; 456 pub const GL_INTENSITY12: u32 = 32844u32; 457 pub const GL_INTENSITY16: u32 = 32845u32; 458 pub const GL_INTENSITY4: u32 = 32842u32; 459 pub const GL_INTENSITY8: u32 = 32843u32; 460 pub const GL_INVALID_ENUM: u32 = 1280u32; 461 pub const GL_INVALID_OPERATION: u32 = 1282u32; 462 pub const GL_INVALID_VALUE: u32 = 1281u32; 463 pub const GL_INVERT: u32 = 5386u32; 464 pub const GL_KEEP: u32 = 7680u32; 465 pub const GL_LEFT: u32 = 1030u32; 466 pub const GL_LEQUAL: u32 = 515u32; 467 pub const GL_LESS: u32 = 513u32; 468 pub const GL_LIGHT0: u32 = 16384u32; 469 pub const GL_LIGHT1: u32 = 16385u32; 470 pub const GL_LIGHT2: u32 = 16386u32; 471 pub const GL_LIGHT3: u32 = 16387u32; 472 pub const GL_LIGHT4: u32 = 16388u32; 473 pub const GL_LIGHT5: u32 = 16389u32; 474 pub const GL_LIGHT6: u32 = 16390u32; 475 pub const GL_LIGHT7: u32 = 16391u32; 476 pub const GL_LIGHTING: u32 = 2896u32; 477 pub const GL_LIGHTING_BIT: u32 = 64u32; 478 pub const GL_LIGHT_MODEL_AMBIENT: u32 = 2899u32; 479 pub const GL_LIGHT_MODEL_LOCAL_VIEWER: u32 = 2897u32; 480 pub const GL_LIGHT_MODEL_TWO_SIDE: u32 = 2898u32; 481 pub const GL_LINE: u32 = 6913u32; 482 pub const GL_LINEAR: u32 = 9729u32; 483 pub const GL_LINEAR_ATTENUATION: u32 = 4616u32; 484 pub const GL_LINEAR_MIPMAP_LINEAR: u32 = 9987u32; 485 pub const GL_LINEAR_MIPMAP_NEAREST: u32 = 9985u32; 486 pub const GL_LINES: u32 = 1u32; 487 pub const GL_LINE_BIT: u32 = 4u32; 488 pub const GL_LINE_LOOP: u32 = 2u32; 489 pub const GL_LINE_RESET_TOKEN: u32 = 1799u32; 490 pub const GL_LINE_SMOOTH: u32 = 2848u32; 491 pub const GL_LINE_SMOOTH_HINT: u32 = 3154u32; 492 pub const GL_LINE_STIPPLE: u32 = 2852u32; 493 pub const GL_LINE_STIPPLE_PATTERN: u32 = 2853u32; 494 pub const GL_LINE_STIPPLE_REPEAT: u32 = 2854u32; 495 pub const GL_LINE_STRIP: u32 = 3u32; 496 pub const GL_LINE_TOKEN: u32 = 1794u32; 497 pub const GL_LINE_WIDTH: u32 = 2849u32; 498 pub const GL_LINE_WIDTH_GRANULARITY: u32 = 2851u32; 499 pub const GL_LINE_WIDTH_RANGE: u32 = 2850u32; 500 pub const GL_LIST_BASE: u32 = 2866u32; 501 pub const GL_LIST_BIT: u32 = 131072u32; 502 pub const GL_LIST_INDEX: u32 = 2867u32; 503 pub const GL_LIST_MODE: u32 = 2864u32; 504 pub const GL_LOAD: u32 = 257u32; 505 pub const GL_LOGIC_OP: u32 = 3057u32; 506 pub const GL_LOGIC_OP_MODE: u32 = 3056u32; 507 pub const GL_LUMINANCE: u32 = 6409u32; 508 pub const GL_LUMINANCE12: u32 = 32833u32; 509 pub const GL_LUMINANCE12_ALPHA12: u32 = 32839u32; 510 pub const GL_LUMINANCE12_ALPHA4: u32 = 32838u32; 511 pub const GL_LUMINANCE16: u32 = 32834u32; 512 pub const GL_LUMINANCE16_ALPHA16: u32 = 32840u32; 513 pub const GL_LUMINANCE4: u32 = 32831u32; 514 pub const GL_LUMINANCE4_ALPHA4: u32 = 32835u32; 515 pub const GL_LUMINANCE6_ALPHA2: u32 = 32836u32; 516 pub const GL_LUMINANCE8: u32 = 32832u32; 517 pub const GL_LUMINANCE8_ALPHA8: u32 = 32837u32; 518 pub const GL_LUMINANCE_ALPHA: u32 = 6410u32; 519 pub const GL_MAP1_COLOR_4: u32 = 3472u32; 520 pub const GL_MAP1_GRID_DOMAIN: u32 = 3536u32; 521 pub const GL_MAP1_GRID_SEGMENTS: u32 = 3537u32; 522 pub const GL_MAP1_INDEX: u32 = 3473u32; 523 pub const GL_MAP1_NORMAL: u32 = 3474u32; 524 pub const GL_MAP1_TEXTURE_COORD_1: u32 = 3475u32; 525 pub const GL_MAP1_TEXTURE_COORD_2: u32 = 3476u32; 526 pub const GL_MAP1_TEXTURE_COORD_3: u32 = 3477u32; 527 pub const GL_MAP1_TEXTURE_COORD_4: u32 = 3478u32; 528 pub const GL_MAP1_VERTEX_3: u32 = 3479u32; 529 pub const GL_MAP1_VERTEX_4: u32 = 3480u32; 530 pub const GL_MAP2_COLOR_4: u32 = 3504u32; 531 pub const GL_MAP2_GRID_DOMAIN: u32 = 3538u32; 532 pub const GL_MAP2_GRID_SEGMENTS: u32 = 3539u32; 533 pub const GL_MAP2_INDEX: u32 = 3505u32; 534 pub const GL_MAP2_NORMAL: u32 = 3506u32; 535 pub const GL_MAP2_TEXTURE_COORD_1: u32 = 3507u32; 536 pub const GL_MAP2_TEXTURE_COORD_2: u32 = 3508u32; 537 pub const GL_MAP2_TEXTURE_COORD_3: u32 = 3509u32; 538 pub const GL_MAP2_TEXTURE_COORD_4: u32 = 3510u32; 539 pub const GL_MAP2_VERTEX_3: u32 = 3511u32; 540 pub const GL_MAP2_VERTEX_4: u32 = 3512u32; 541 pub const GL_MAP_COLOR: u32 = 3344u32; 542 pub const GL_MAP_STENCIL: u32 = 3345u32; 543 pub const GL_MATRIX_MODE: u32 = 2976u32; 544 pub const GL_MAX_ATTRIB_STACK_DEPTH: u32 = 3381u32; 545 pub const GL_MAX_CLIENT_ATTRIB_STACK_DEPTH: u32 = 3387u32; 546 pub const GL_MAX_CLIP_PLANES: u32 = 3378u32; 547 pub const GL_MAX_ELEMENTS_INDICES_WIN: u32 = 33001u32; 548 pub const GL_MAX_ELEMENTS_VERTICES_WIN: u32 = 33000u32; 549 pub const GL_MAX_EVAL_ORDER: u32 = 3376u32; 550 pub const GL_MAX_LIGHTS: u32 = 3377u32; 551 pub const GL_MAX_LIST_NESTING: u32 = 2865u32; 552 pub const GL_MAX_MODELVIEW_STACK_DEPTH: u32 = 3382u32; 553 pub const GL_MAX_NAME_STACK_DEPTH: u32 = 3383u32; 554 pub const GL_MAX_PIXEL_MAP_TABLE: u32 = 3380u32; 555 pub const GL_MAX_PROJECTION_STACK_DEPTH: u32 = 3384u32; 556 pub const GL_MAX_TEXTURE_SIZE: u32 = 3379u32; 557 pub const GL_MAX_TEXTURE_STACK_DEPTH: u32 = 3385u32; 558 pub const GL_MAX_VIEWPORT_DIMS: u32 = 3386u32; 559 pub const GL_MODELVIEW: u32 = 5888u32; 560 pub const GL_MODELVIEW_MATRIX: u32 = 2982u32; 561 pub const GL_MODELVIEW_STACK_DEPTH: u32 = 2979u32; 562 pub const GL_MODULATE: u32 = 8448u32; 563 pub const GL_MULT: u32 = 259u32; 564 pub const GL_N3F_V3F: u32 = 10789u32; 565 pub const GL_NAME_STACK_DEPTH: u32 = 3440u32; 566 pub const GL_NAND: u32 = 5390u32; 567 pub const GL_NEAREST: u32 = 9728u32; 568 pub const GL_NEAREST_MIPMAP_LINEAR: u32 = 9986u32; 569 pub const GL_NEAREST_MIPMAP_NEAREST: u32 = 9984u32; 570 pub const GL_NEVER: u32 = 512u32; 571 pub const GL_NICEST: u32 = 4354u32; 572 pub const GL_NONE: u32 = 0u32; 573 pub const GL_NOOP: u32 = 5381u32; 574 pub const GL_NOR: u32 = 5384u32; 575 pub const GL_NORMALIZE: u32 = 2977u32; 576 pub const GL_NORMAL_ARRAY: u32 = 32885u32; 577 pub const GL_NORMAL_ARRAY_COUNT_EXT: u32 = 32896u32; 578 pub const GL_NORMAL_ARRAY_EXT: u32 = 32885u32; 579 pub const GL_NORMAL_ARRAY_POINTER: u32 = 32911u32; 580 pub const GL_NORMAL_ARRAY_POINTER_EXT: u32 = 32911u32; 581 pub const GL_NORMAL_ARRAY_STRIDE: u32 = 32895u32; 582 pub const GL_NORMAL_ARRAY_STRIDE_EXT: u32 = 32895u32; 583 pub const GL_NORMAL_ARRAY_TYPE: u32 = 32894u32; 584 pub const GL_NORMAL_ARRAY_TYPE_EXT: u32 = 32894u32; 585 pub const GL_NOTEQUAL: u32 = 517u32; 586 pub const GL_NO_ERROR: u32 = 0u32; 587 pub const GL_OBJECT_LINEAR: u32 = 9217u32; 588 pub const GL_OBJECT_PLANE: u32 = 9473u32; 589 pub const GL_ONE: u32 = 1u32; 590 pub const GL_ONE_MINUS_DST_ALPHA: u32 = 773u32; 591 pub const GL_ONE_MINUS_DST_COLOR: u32 = 775u32; 592 pub const GL_ONE_MINUS_SRC_ALPHA: u32 = 771u32; 593 pub const GL_ONE_MINUS_SRC_COLOR: u32 = 769u32; 594 pub const GL_OR: u32 = 5383u32; 595 pub const GL_ORDER: u32 = 2561u32; 596 pub const GL_OR_INVERTED: u32 = 5389u32; 597 pub const GL_OR_REVERSE: u32 = 5387u32; 598 pub const GL_OUT_OF_MEMORY: u32 = 1285u32; 599 pub const GL_PACK_ALIGNMENT: u32 = 3333u32; 600 pub const GL_PACK_LSB_FIRST: u32 = 3329u32; 601 pub const GL_PACK_ROW_LENGTH: u32 = 3330u32; 602 pub const GL_PACK_SKIP_PIXELS: u32 = 3332u32; 603 pub const GL_PACK_SKIP_ROWS: u32 = 3331u32; 604 pub const GL_PACK_SWAP_BYTES: u32 = 3328u32; 605 pub const GL_PASS_THROUGH_TOKEN: u32 = 1792u32; 606 pub const GL_PERSPECTIVE_CORRECTION_HINT: u32 = 3152u32; 607 pub const GL_PHONG_HINT_WIN: u32 = 33003u32; 608 pub const GL_PHONG_WIN: u32 = 33002u32; 609 pub const GL_PIXEL_MAP_A_TO_A: u32 = 3193u32; 610 pub const GL_PIXEL_MAP_A_TO_A_SIZE: u32 = 3257u32; 611 pub const GL_PIXEL_MAP_B_TO_B: u32 = 3192u32; 612 pub const GL_PIXEL_MAP_B_TO_B_SIZE: u32 = 3256u32; 613 pub const GL_PIXEL_MAP_G_TO_G: u32 = 3191u32; 614 pub const GL_PIXEL_MAP_G_TO_G_SIZE: u32 = 3255u32; 615 pub const GL_PIXEL_MAP_I_TO_A: u32 = 3189u32; 616 pub const GL_PIXEL_MAP_I_TO_A_SIZE: u32 = 3253u32; 617 pub const GL_PIXEL_MAP_I_TO_B: u32 = 3188u32; 618 pub const GL_PIXEL_MAP_I_TO_B_SIZE: u32 = 3252u32; 619 pub const GL_PIXEL_MAP_I_TO_G: u32 = 3187u32; 620 pub const GL_PIXEL_MAP_I_TO_G_SIZE: u32 = 3251u32; 621 pub const GL_PIXEL_MAP_I_TO_I: u32 = 3184u32; 622 pub const GL_PIXEL_MAP_I_TO_I_SIZE: u32 = 3248u32; 623 pub const GL_PIXEL_MAP_I_TO_R: u32 = 3186u32; 624 pub const GL_PIXEL_MAP_I_TO_R_SIZE: u32 = 3250u32; 625 pub const GL_PIXEL_MAP_R_TO_R: u32 = 3190u32; 626 pub const GL_PIXEL_MAP_R_TO_R_SIZE: u32 = 3254u32; 627 pub const GL_PIXEL_MAP_S_TO_S: u32 = 3185u32; 628 pub const GL_PIXEL_MAP_S_TO_S_SIZE: u32 = 3249u32; 629 pub const GL_PIXEL_MODE_BIT: u32 = 32u32; 630 pub const GL_POINT: u32 = 6912u32; 631 pub const GL_POINTS: u32 = 0u32; 632 pub const GL_POINT_BIT: u32 = 2u32; 633 pub const GL_POINT_SIZE: u32 = 2833u32; 634 pub const GL_POINT_SIZE_GRANULARITY: u32 = 2835u32; 635 pub const GL_POINT_SIZE_RANGE: u32 = 2834u32; 636 pub const GL_POINT_SMOOTH: u32 = 2832u32; 637 pub const GL_POINT_SMOOTH_HINT: u32 = 3153u32; 638 pub const GL_POINT_TOKEN: u32 = 1793u32; 639 pub const GL_POLYGON: u32 = 9u32; 640 pub const GL_POLYGON_BIT: u32 = 8u32; 641 pub const GL_POLYGON_MODE: u32 = 2880u32; 642 pub const GL_POLYGON_OFFSET_FACTOR: u32 = 32824u32; 643 pub const GL_POLYGON_OFFSET_FILL: u32 = 32823u32; 644 pub const GL_POLYGON_OFFSET_LINE: u32 = 10754u32; 645 pub const GL_POLYGON_OFFSET_POINT: u32 = 10753u32; 646 pub const GL_POLYGON_OFFSET_UNITS: u32 = 10752u32; 647 pub const GL_POLYGON_SMOOTH: u32 = 2881u32; 648 pub const GL_POLYGON_SMOOTH_HINT: u32 = 3155u32; 649 pub const GL_POLYGON_STIPPLE: u32 = 2882u32; 650 pub const GL_POLYGON_STIPPLE_BIT: u32 = 16u32; 651 pub const GL_POLYGON_TOKEN: u32 = 1795u32; 652 pub const GL_POSITION: u32 = 4611u32; 653 pub const GL_PROJECTION: u32 = 5889u32; 654 pub const GL_PROJECTION_MATRIX: u32 = 2983u32; 655 pub const GL_PROJECTION_STACK_DEPTH: u32 = 2980u32; 656 pub const GL_PROXY_TEXTURE_1D: u32 = 32867u32; 657 pub const GL_PROXY_TEXTURE_2D: u32 = 32868u32; 658 pub const GL_Q: u32 = 8195u32; 659 pub const GL_QUADRATIC_ATTENUATION: u32 = 4617u32; 660 pub const GL_QUADS: u32 = 7u32; 661 pub const GL_QUAD_STRIP: u32 = 8u32; 662 pub const GL_R: u32 = 8194u32; 663 pub const GL_R3_G3_B2: u32 = 10768u32; 664 pub const GL_READ_BUFFER: u32 = 3074u32; 665 pub const GL_RED: u32 = 6403u32; 666 pub const GL_RED_BIAS: u32 = 3349u32; 667 pub const GL_RED_BITS: u32 = 3410u32; 668 pub const GL_RED_SCALE: u32 = 3348u32; 669 pub const GL_RENDER: u32 = 7168u32; 670 pub const GL_RENDERER: u32 = 7937u32; 671 pub const GL_RENDER_MODE: u32 = 3136u32; 672 pub const GL_REPEAT: u32 = 10497u32; 673 pub const GL_REPLACE: u32 = 7681u32; 674 pub const GL_RETURN: u32 = 258u32; 675 pub const GL_RGB: u32 = 6407u32; 676 pub const GL_RGB10: u32 = 32850u32; 677 pub const GL_RGB10_A2: u32 = 32857u32; 678 pub const GL_RGB12: u32 = 32851u32; 679 pub const GL_RGB16: u32 = 32852u32; 680 pub const GL_RGB4: u32 = 32847u32; 681 pub const GL_RGB5: u32 = 32848u32; 682 pub const GL_RGB5_A1: u32 = 32855u32; 683 pub const GL_RGB8: u32 = 32849u32; 684 pub const GL_RGBA: u32 = 6408u32; 685 pub const GL_RGBA12: u32 = 32858u32; 686 pub const GL_RGBA16: u32 = 32859u32; 687 pub const GL_RGBA2: u32 = 32853u32; 688 pub const GL_RGBA4: u32 = 32854u32; 689 pub const GL_RGBA8: u32 = 32856u32; 690 pub const GL_RGBA_MODE: u32 = 3121u32; 691 pub const GL_RIGHT: u32 = 1031u32; 692 pub const GL_S: u32 = 8192u32; 693 pub const GL_SCISSOR_BIT: u32 = 524288u32; 694 pub const GL_SCISSOR_BOX: u32 = 3088u32; 695 pub const GL_SCISSOR_TEST: u32 = 3089u32; 696 pub const GL_SELECT: u32 = 7170u32; 697 pub const GL_SELECTION_BUFFER_POINTER: u32 = 3571u32; 698 pub const GL_SELECTION_BUFFER_SIZE: u32 = 3572u32; 699 pub const GL_SET: u32 = 5391u32; 700 pub const GL_SHADE_MODEL: u32 = 2900u32; 701 pub const GL_SHININESS: u32 = 5633u32; 702 pub const GL_SHORT: u32 = 5122u32; 703 pub const GL_SMOOTH: u32 = 7425u32; 704 pub const GL_SPECULAR: u32 = 4610u32; 705 pub const GL_SPHERE_MAP: u32 = 9218u32; 706 pub const GL_SPOT_CUTOFF: u32 = 4614u32; 707 pub const GL_SPOT_DIRECTION: u32 = 4612u32; 708 pub const GL_SPOT_EXPONENT: u32 = 4613u32; 709 pub const GL_SRC_ALPHA: u32 = 770u32; 710 pub const GL_SRC_ALPHA_SATURATE: u32 = 776u32; 711 pub const GL_SRC_COLOR: u32 = 768u32; 712 pub const GL_STACK_OVERFLOW: u32 = 1283u32; 713 pub const GL_STACK_UNDERFLOW: u32 = 1284u32; 714 pub const GL_STENCIL: u32 = 6146u32; 715 pub const GL_STENCIL_BITS: u32 = 3415u32; 716 pub const GL_STENCIL_BUFFER_BIT: u32 = 1024u32; 717 pub const GL_STENCIL_CLEAR_VALUE: u32 = 2961u32; 718 pub const GL_STENCIL_FAIL: u32 = 2964u32; 719 pub const GL_STENCIL_FUNC: u32 = 2962u32; 720 pub const GL_STENCIL_INDEX: u32 = 6401u32; 721 pub const GL_STENCIL_PASS_DEPTH_FAIL: u32 = 2965u32; 722 pub const GL_STENCIL_PASS_DEPTH_PASS: u32 = 2966u32; 723 pub const GL_STENCIL_REF: u32 = 2967u32; 724 pub const GL_STENCIL_TEST: u32 = 2960u32; 725 pub const GL_STENCIL_VALUE_MASK: u32 = 2963u32; 726 pub const GL_STENCIL_WRITEMASK: u32 = 2968u32; 727 pub const GL_STEREO: u32 = 3123u32; 728 pub const GL_SUBPIXEL_BITS: u32 = 3408u32; 729 pub const GL_T: u32 = 8193u32; 730 pub const GL_T2F_C3F_V3F: u32 = 10794u32; 731 pub const GL_T2F_C4F_N3F_V3F: u32 = 10796u32; 732 pub const GL_T2F_C4UB_V3F: u32 = 10793u32; 733 pub const GL_T2F_N3F_V3F: u32 = 10795u32; 734 pub const GL_T2F_V3F: u32 = 10791u32; 735 pub const GL_T4F_C4F_N3F_V4F: u32 = 10797u32; 736 pub const GL_T4F_V4F: u32 = 10792u32; 737 pub const GL_TEXTURE: u32 = 5890u32; 738 pub const GL_TEXTURE_1D: u32 = 3552u32; 739 pub const GL_TEXTURE_2D: u32 = 3553u32; 740 pub const GL_TEXTURE_ALPHA_SIZE: u32 = 32863u32; 741 pub const GL_TEXTURE_BINDING_1D: u32 = 32872u32; 742 pub const GL_TEXTURE_BINDING_2D: u32 = 32873u32; 743 pub const GL_TEXTURE_BIT: u32 = 262144u32; 744 pub const GL_TEXTURE_BLUE_SIZE: u32 = 32862u32; 745 pub const GL_TEXTURE_BORDER: u32 = 4101u32; 746 pub const GL_TEXTURE_BORDER_COLOR: u32 = 4100u32; 747 pub const GL_TEXTURE_COMPONENTS: u32 = 4099u32; 748 pub const GL_TEXTURE_COORD_ARRAY: u32 = 32888u32; 749 pub const GL_TEXTURE_COORD_ARRAY_COUNT_EXT: u32 = 32907u32; 750 pub const GL_TEXTURE_COORD_ARRAY_EXT: u32 = 32888u32; 751 pub const GL_TEXTURE_COORD_ARRAY_POINTER: u32 = 32914u32; 752 pub const GL_TEXTURE_COORD_ARRAY_POINTER_EXT: u32 = 32914u32; 753 pub const GL_TEXTURE_COORD_ARRAY_SIZE: u32 = 32904u32; 754 pub const GL_TEXTURE_COORD_ARRAY_SIZE_EXT: u32 = 32904u32; 755 pub const GL_TEXTURE_COORD_ARRAY_STRIDE: u32 = 32906u32; 756 pub const GL_TEXTURE_COORD_ARRAY_STRIDE_EXT: u32 = 32906u32; 757 pub const GL_TEXTURE_COORD_ARRAY_TYPE: u32 = 32905u32; 758 pub const GL_TEXTURE_COORD_ARRAY_TYPE_EXT: u32 = 32905u32; 759 pub const GL_TEXTURE_ENV: u32 = 8960u32; 760 pub const GL_TEXTURE_ENV_COLOR: u32 = 8705u32; 761 pub const GL_TEXTURE_ENV_MODE: u32 = 8704u32; 762 pub const GL_TEXTURE_GEN_MODE: u32 = 9472u32; 763 pub const GL_TEXTURE_GEN_Q: u32 = 3171u32; 764 pub const GL_TEXTURE_GEN_R: u32 = 3170u32; 765 pub const GL_TEXTURE_GEN_S: u32 = 3168u32; 766 pub const GL_TEXTURE_GEN_T: u32 = 3169u32; 767 pub const GL_TEXTURE_GREEN_SIZE: u32 = 32861u32; 768 pub const GL_TEXTURE_HEIGHT: u32 = 4097u32; 769 pub const GL_TEXTURE_INTENSITY_SIZE: u32 = 32865u32; 770 pub const GL_TEXTURE_INTERNAL_FORMAT: u32 = 4099u32; 771 pub const GL_TEXTURE_LUMINANCE_SIZE: u32 = 32864u32; 772 pub const GL_TEXTURE_MAG_FILTER: u32 = 10240u32; 773 pub const GL_TEXTURE_MATRIX: u32 = 2984u32; 774 pub const GL_TEXTURE_MIN_FILTER: u32 = 10241u32; 775 pub const GL_TEXTURE_PRIORITY: u32 = 32870u32; 776 pub const GL_TEXTURE_RED_SIZE: u32 = 32860u32; 777 pub const GL_TEXTURE_RESIDENT: u32 = 32871u32; 778 pub const GL_TEXTURE_STACK_DEPTH: u32 = 2981u32; 779 pub const GL_TEXTURE_WIDTH: u32 = 4096u32; 780 pub const GL_TEXTURE_WRAP_S: u32 = 10242u32; 781 pub const GL_TEXTURE_WRAP_T: u32 = 10243u32; 782 pub const GL_TRANSFORM_BIT: u32 = 4096u32; 783 pub const GL_TRIANGLES: u32 = 4u32; 784 pub const GL_TRIANGLE_FAN: u32 = 6u32; 785 pub const GL_TRIANGLE_STRIP: u32 = 5u32; 786 pub const GL_TRUE: u32 = 1u32; 787 pub const GL_UNPACK_ALIGNMENT: u32 = 3317u32; 788 pub const GL_UNPACK_LSB_FIRST: u32 = 3313u32; 789 pub const GL_UNPACK_ROW_LENGTH: u32 = 3314u32; 790 pub const GL_UNPACK_SKIP_PIXELS: u32 = 3316u32; 791 pub const GL_UNPACK_SKIP_ROWS: u32 = 3315u32; 792 pub const GL_UNPACK_SWAP_BYTES: u32 = 3312u32; 793 pub const GL_UNSIGNED_BYTE: u32 = 5121u32; 794 pub const GL_UNSIGNED_INT: u32 = 5125u32; 795 pub const GL_UNSIGNED_SHORT: u32 = 5123u32; 796 pub const GL_V2F: u32 = 10784u32; 797 pub const GL_V3F: u32 = 10785u32; 798 pub const GL_VENDOR: u32 = 7936u32; 799 pub const GL_VERSION: u32 = 7938u32; 800 pub const GL_VERSION_1_1: u32 = 1u32; 801 pub const GL_VERTEX_ARRAY: u32 = 32884u32; 802 pub const GL_VERTEX_ARRAY_COUNT_EXT: u32 = 32893u32; 803 pub const GL_VERTEX_ARRAY_EXT: u32 = 32884u32; 804 pub const GL_VERTEX_ARRAY_POINTER: u32 = 32910u32; 805 pub const GL_VERTEX_ARRAY_POINTER_EXT: u32 = 32910u32; 806 pub const GL_VERTEX_ARRAY_SIZE: u32 = 32890u32; 807 pub const GL_VERTEX_ARRAY_SIZE_EXT: u32 = 32890u32; 808 pub const GL_VERTEX_ARRAY_STRIDE: u32 = 32892u32; 809 pub const GL_VERTEX_ARRAY_STRIDE_EXT: u32 = 32892u32; 810 pub const GL_VERTEX_ARRAY_TYPE: u32 = 32891u32; 811 pub const GL_VERTEX_ARRAY_TYPE_EXT: u32 = 32891u32; 812 pub const GL_VIEWPORT: u32 = 2978u32; 813 pub const GL_VIEWPORT_BIT: u32 = 2048u32; 814 pub const GL_WIN_draw_range_elements: u32 = 1u32; 815 pub const GL_WIN_swap_hint: u32 = 1u32; 816 pub const GL_XOR: u32 = 5382u32; 817 pub const GL_ZERO: u32 = 0u32; 818 pub const GL_ZOOM_X: u32 = 3350u32; 819 pub const GL_ZOOM_Y: u32 = 3351u32; 820 #[cfg(feature = "Win32_Graphics_Gdi")] 821 #[inline] 822 pub unsafe fn GetEnhMetaFilePixelFormat<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HENHMETAFILE>>(hemf: Param0, cbbuffer: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> u32 { 823 #[cfg(windows)] 824 { 825 #[link(name = "windows")] 826 extern "system" { 827 fn GetEnhMetaFilePixelFormat(hemf: super::Gdi::HENHMETAFILE, cbbuffer: u32, ppfd: *mut PIXELFORMATDESCRIPTOR) -> u32; 828 } 829 ::std::mem::transmute(GetEnhMetaFilePixelFormat(hemf.into_param().abi(), ::std::mem::transmute(cbbuffer), ::std::mem::transmute(ppfd))) 830 } 831 #[cfg(not(windows))] 832 unimplemented!("Unsupported target OS"); 833 } 834 #[cfg(feature = "Win32_Graphics_Gdi")] 835 #[inline] 836 pub unsafe fn GetPixelFormat<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(hdc: Param0) -> i32 { 837 #[cfg(windows)] 838 { 839 #[link(name = "windows")] 840 extern "system" { 841 fn GetPixelFormat(hdc: super::Gdi::HDC) -> i32; 842 } 843 ::std::mem::transmute(GetPixelFormat(hdc.into_param().abi())) 844 } 845 #[cfg(not(windows))] 846 unimplemented!("Unsupported target OS"); 847 } 848 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy, :: std :: fmt :: Debug, :: std :: cmp :: PartialEq, :: std :: cmp :: Eq)] 849 #[repr(transparent)] 850 pub struct HGLRC(pub isize); 851 impl ::std::default::Default for HGLRC { 852 fn default() -> Self { 853 unsafe { ::std::mem::zeroed() } 854 } 855 } 856 unsafe impl ::windows::runtime::Handle for HGLRC {} 857 unsafe impl ::windows::runtime::Abi for HGLRC { 858 type Abi = Self; 859 type DefaultType = Self; 860 } 861 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 862 #[repr(C)] 863 pub struct LAYERPLANEDESCRIPTOR { 864 pub nSize: u16, 865 pub nVersion: u16, 866 pub dwFlags: u32, 867 pub iPixelType: u8, 868 pub cColorBits: u8, 869 pub cRedBits: u8, 870 pub cRedShift: u8, 871 pub cGreenBits: u8, 872 pub cGreenShift: u8, 873 pub cBlueBits: u8, 874 pub cBlueShift: u8, 875 pub cAlphaBits: u8, 876 pub cAlphaShift: u8, 877 pub cAccumBits: u8, 878 pub cAccumRedBits: u8, 879 pub cAccumGreenBits: u8, 880 pub cAccumBlueBits: u8, 881 pub cAccumAlphaBits: u8, 882 pub cDepthBits: u8, 883 pub cStencilBits: u8, 884 pub cAuxBuffers: u8, 885 pub iLayerPlane: u8, 886 pub bReserved: u8, 887 pub crTransparent: u32, 888 } 889 impl LAYERPLANEDESCRIPTOR {} 890 impl ::std::default::Default for LAYERPLANEDESCRIPTOR { 891 fn default() -> Self { 892 unsafe { ::std::mem::zeroed() } 893 } 894 } 895 impl ::std::fmt::Debug for LAYERPLANEDESCRIPTOR { 896 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 897 fmt.debug_struct("LAYERPLANEDESCRIPTOR") 898 .field("nSize", &self.nSize) 899 .field("nVersion", &self.nVersion) 900 .field("dwFlags", &self.dwFlags) 901 .field("iPixelType", &self.iPixelType) 902 .field("cColorBits", &self.cColorBits) 903 .field("cRedBits", &self.cRedBits) 904 .field("cRedShift", &self.cRedShift) 905 .field("cGreenBits", &self.cGreenBits) 906 .field("cGreenShift", &self.cGreenShift) 907 .field("cBlueBits", &self.cBlueBits) 908 .field("cBlueShift", &self.cBlueShift) 909 .field("cAlphaBits", &self.cAlphaBits) 910 .field("cAlphaShift", &self.cAlphaShift) 911 .field("cAccumBits", &self.cAccumBits) 912 .field("cAccumRedBits", &self.cAccumRedBits) 913 .field("cAccumGreenBits", &self.cAccumGreenBits) 914 .field("cAccumBlueBits", &self.cAccumBlueBits) 915 .field("cAccumAlphaBits", &self.cAccumAlphaBits) 916 .field("cDepthBits", &self.cDepthBits) 917 .field("cStencilBits", &self.cStencilBits) 918 .field("cAuxBuffers", &self.cAuxBuffers) 919 .field("iLayerPlane", &self.iLayerPlane) 920 .field("bReserved", &self.bReserved) 921 .field("crTransparent", &self.crTransparent) 922 .finish() 923 } 924 } 925 impl ::std::cmp::PartialEq for LAYERPLANEDESCRIPTOR { 926 fn eq(&self, other: &Self) -> bool { 927 self.nSize == other.nSize 928 && self.nVersion == other.nVersion 929 && self.dwFlags == other.dwFlags 930 && self.iPixelType == other.iPixelType 931 && self.cColorBits == other.cColorBits 932 && self.cRedBits == other.cRedBits 933 && self.cRedShift == other.cRedShift 934 && self.cGreenBits == other.cGreenBits 935 && self.cGreenShift == other.cGreenShift 936 && self.cBlueBits == other.cBlueBits 937 && self.cBlueShift == other.cBlueShift 938 && self.cAlphaBits == other.cAlphaBits 939 && self.cAlphaShift == other.cAlphaShift 940 && self.cAccumBits == other.cAccumBits 941 && self.cAccumRedBits == other.cAccumRedBits 942 && self.cAccumGreenBits == other.cAccumGreenBits 943 && self.cAccumBlueBits == other.cAccumBlueBits 944 && self.cAccumAlphaBits == other.cAccumAlphaBits 945 && self.cDepthBits == other.cDepthBits 946 && self.cStencilBits == other.cStencilBits 947 && self.cAuxBuffers == other.cAuxBuffers 948 && self.iLayerPlane == other.iLayerPlane 949 && self.bReserved == other.bReserved 950 && self.crTransparent == other.crTransparent 951 } 952 } 953 impl ::std::cmp::Eq for LAYERPLANEDESCRIPTOR {} 954 unsafe impl ::windows::runtime::Abi for LAYERPLANEDESCRIPTOR { 955 type Abi = Self; 956 type DefaultType = Self; 957 } 958 pub type PFNGLADDSWAPHINTRECTWINPROC = unsafe extern "system" fn(x: i32, y: i32, width: i32, height: i32); 959 pub type PFNGLARRAYELEMENTARRAYEXTPROC = unsafe extern "system" fn(mode: u32, count: i32, pi: *const ::std::ffi::c_void); 960 pub type PFNGLARRAYELEMENTEXTPROC = unsafe extern "system" fn(i: i32); 961 pub type PFNGLCOLORPOINTEREXTPROC = unsafe extern "system" fn(size: i32, r#type: u32, stride: i32, count: i32, pointer: *const ::std::ffi::c_void); 962 pub type PFNGLCOLORSUBTABLEEXTPROC = unsafe extern "system" fn(target: u32, start: i32, count: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void); 963 pub type PFNGLCOLORTABLEEXTPROC = unsafe extern "system" fn(target: u32, internalformat: u32, width: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void); 964 pub type PFNGLDRAWARRAYSEXTPROC = unsafe extern "system" fn(mode: u32, first: i32, count: i32); 965 pub type PFNGLDRAWRANGEELEMENTSWINPROC = unsafe extern "system" fn(mode: u32, start: u32, end: u32, count: i32, r#type: u32, indices: *const ::std::ffi::c_void); 966 pub type PFNGLEDGEFLAGPOINTEREXTPROC = unsafe extern "system" fn(stride: i32, count: i32, pointer: *const u8); 967 pub type PFNGLGETCOLORTABLEEXTPROC = unsafe extern "system" fn(target: u32, format: u32, r#type: u32, data: *mut ::std::ffi::c_void); 968 pub type PFNGLGETCOLORTABLEPARAMETERFVEXTPROC = unsafe extern "system" fn(target: u32, pname: u32, params: *mut f32); 969 pub type PFNGLGETCOLORTABLEPARAMETERIVEXTPROC = unsafe extern "system" fn(target: u32, pname: u32, params: *mut i32); 970 pub type PFNGLGETPOINTERVEXTPROC = unsafe extern "system" fn(pname: u32, params: *mut *mut ::std::ffi::c_void); 971 pub type PFNGLINDEXPOINTEREXTPROC = unsafe extern "system" fn(r#type: u32, stride: i32, count: i32, pointer: *const ::std::ffi::c_void); 972 pub type PFNGLNORMALPOINTEREXTPROC = unsafe extern "system" fn(r#type: u32, stride: i32, count: i32, pointer: *const ::std::ffi::c_void); 973 pub type PFNGLTEXCOORDPOINTEREXTPROC = unsafe extern "system" fn(size: i32, r#type: u32, stride: i32, count: i32, pointer: *const ::std::ffi::c_void); 974 pub type PFNGLVERTEXPOINTEREXTPROC = unsafe extern "system" fn(size: i32, r#type: u32, stride: i32, count: i32, pointer: *const ::std::ffi::c_void); 975 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 976 #[repr(C)] 977 pub struct PIXELFORMATDESCRIPTOR { 978 pub nSize: u16, 979 pub nVersion: u16, 980 pub dwFlags: u32, 981 pub iPixelType: u8, 982 pub cColorBits: u8, 983 pub cRedBits: u8, 984 pub cRedShift: u8, 985 pub cGreenBits: u8, 986 pub cGreenShift: u8, 987 pub cBlueBits: u8, 988 pub cBlueShift: u8, 989 pub cAlphaBits: u8, 990 pub cAlphaShift: u8, 991 pub cAccumBits: u8, 992 pub cAccumRedBits: u8, 993 pub cAccumGreenBits: u8, 994 pub cAccumBlueBits: u8, 995 pub cAccumAlphaBits: u8, 996 pub cDepthBits: u8, 997 pub cStencilBits: u8, 998 pub cAuxBuffers: u8, 999 pub iLayerType: u8, 1000 pub bReserved: u8, 1001 pub dwLayerMask: u32, 1002 pub dwVisibleMask: u32, 1003 pub dwDamageMask: u32, 1004 } 1005 impl PIXELFORMATDESCRIPTOR {} 1006 impl ::std::default::Default for PIXELFORMATDESCRIPTOR { 1007 fn default() -> Self { 1008 unsafe { ::std::mem::zeroed() } 1009 } 1010 } 1011 impl ::std::fmt::Debug for PIXELFORMATDESCRIPTOR { 1012 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 1013 fmt.debug_struct("PIXELFORMATDESCRIPTOR") 1014 .field("nSize", &self.nSize) 1015 .field("nVersion", &self.nVersion) 1016 .field("dwFlags", &self.dwFlags) 1017 .field("iPixelType", &self.iPixelType) 1018 .field("cColorBits", &self.cColorBits) 1019 .field("cRedBits", &self.cRedBits) 1020 .field("cRedShift", &self.cRedShift) 1021 .field("cGreenBits", &self.cGreenBits) 1022 .field("cGreenShift", &self.cGreenShift) 1023 .field("cBlueBits", &self.cBlueBits) 1024 .field("cBlueShift", &self.cBlueShift) 1025 .field("cAlphaBits", &self.cAlphaBits) 1026 .field("cAlphaShift", &self.cAlphaShift) 1027 .field("cAccumBits", &self.cAccumBits) 1028 .field("cAccumRedBits", &self.cAccumRedBits) 1029 .field("cAccumGreenBits", &self.cAccumGreenBits) 1030 .field("cAccumBlueBits", &self.cAccumBlueBits) 1031 .field("cAccumAlphaBits", &self.cAccumAlphaBits) 1032 .field("cDepthBits", &self.cDepthBits) 1033 .field("cStencilBits", &self.cStencilBits) 1034 .field("cAuxBuffers", &self.cAuxBuffers) 1035 .field("iLayerType", &self.iLayerType) 1036 .field("bReserved", &self.bReserved) 1037 .field("dwLayerMask", &self.dwLayerMask) 1038 .field("dwVisibleMask", &self.dwVisibleMask) 1039 .field("dwDamageMask", &self.dwDamageMask) 1040 .finish() 1041 } 1042 } 1043 impl ::std::cmp::PartialEq for PIXELFORMATDESCRIPTOR { 1044 fn eq(&self, other: &Self) -> bool { 1045 self.nSize == other.nSize 1046 && self.nVersion == other.nVersion 1047 && self.dwFlags == other.dwFlags 1048 && self.iPixelType == other.iPixelType 1049 && self.cColorBits == other.cColorBits 1050 && self.cRedBits == other.cRedBits 1051 && self.cRedShift == other.cRedShift 1052 && self.cGreenBits == other.cGreenBits 1053 && self.cGreenShift == other.cGreenShift 1054 && self.cBlueBits == other.cBlueBits 1055 && self.cBlueShift == other.cBlueShift 1056 && self.cAlphaBits == other.cAlphaBits 1057 && self.cAlphaShift == other.cAlphaShift 1058 && self.cAccumBits == other.cAccumBits 1059 && self.cAccumRedBits == other.cAccumRedBits 1060 && self.cAccumGreenBits == other.cAccumGreenBits 1061 && self.cAccumBlueBits == other.cAccumBlueBits 1062 && self.cAccumAlphaBits == other.cAccumAlphaBits 1063 && self.cDepthBits == other.cDepthBits 1064 && self.cStencilBits == other.cStencilBits 1065 && self.cAuxBuffers == other.cAuxBuffers 1066 && self.iLayerType == other.iLayerType 1067 && self.bReserved == other.bReserved 1068 && self.dwLayerMask == other.dwLayerMask 1069 && self.dwVisibleMask == other.dwVisibleMask 1070 && self.dwDamageMask == other.dwDamageMask 1071 } 1072 } 1073 impl ::std::cmp::Eq for PIXELFORMATDESCRIPTOR {} 1074 unsafe impl ::windows::runtime::Abi for PIXELFORMATDESCRIPTOR { 1075 type Abi = Self; 1076 type DefaultType = Self; 1077 } 1078 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 1079 #[repr(C)] 1080 pub struct POINTFLOAT { 1081 pub x: f32, 1082 pub y: f32, 1083 } 1084 impl POINTFLOAT {} 1085 impl ::std::default::Default for POINTFLOAT { 1086 fn default() -> Self { 1087 unsafe { ::std::mem::zeroed() } 1088 } 1089 } 1090 impl ::std::fmt::Debug for POINTFLOAT { 1091 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 1092 fmt.debug_struct("POINTFLOAT").field("x", &self.x).field("y", &self.y).finish() 1093 } 1094 } 1095 impl ::std::cmp::PartialEq for POINTFLOAT { 1096 fn eq(&self, other: &Self) -> bool { 1097 self.x == other.x && self.y == other.y 1098 } 1099 } 1100 impl ::std::cmp::Eq for POINTFLOAT {} 1101 unsafe impl ::windows::runtime::Abi for POINTFLOAT { 1102 type Abi = Self; 1103 type DefaultType = Self; 1104 } 1105 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 1106 #[inline] 1107 pub unsafe fn SetPixelFormat<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(hdc: Param0, format: i32, ppfd: *const PIXELFORMATDESCRIPTOR) -> super::super::Foundation::BOOL { 1108 #[cfg(windows)] 1109 { 1110 #[link(name = "windows")] 1111 extern "system" { 1112 fn SetPixelFormat(hdc: super::Gdi::HDC, format: i32, ppfd: *const PIXELFORMATDESCRIPTOR) -> super::super::Foundation::BOOL; 1113 } 1114 ::std::mem::transmute(SetPixelFormat(hdc.into_param().abi(), ::std::mem::transmute(format), ::std::mem::transmute(ppfd))) 1115 } 1116 #[cfg(not(windows))] 1117 unimplemented!("Unsupported target OS"); 1118 } 1119 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 1120 #[inline] 1121 pub unsafe fn SwapBuffers<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0) -> super::super::Foundation::BOOL { 1122 #[cfg(windows)] 1123 { 1124 #[link(name = "windows")] 1125 extern "system" { 1126 fn SwapBuffers(param0: super::Gdi::HDC) -> super::super::Foundation::BOOL; 1127 } 1128 ::std::mem::transmute(SwapBuffers(param0.into_param().abi())) 1129 } 1130 #[cfg(not(windows))] 1131 unimplemented!("Unsupported target OS"); 1132 } 1133 #[inline] 1134 pub unsafe fn glAccum(op: u32, value: f32) { 1135 #[cfg(windows)] 1136 { 1137 #[link(name = "windows")] 1138 extern "system" { 1139 fn glAccum(op: u32, value: f32); 1140 } 1141 ::std::mem::transmute(glAccum(::std::mem::transmute(op), ::std::mem::transmute(value))) 1142 } 1143 #[cfg(not(windows))] 1144 unimplemented!("Unsupported target OS"); 1145 } 1146 #[inline] 1147 pub unsafe fn glAlphaFunc(func: u32, r#ref: f32) { 1148 #[cfg(windows)] 1149 { 1150 #[link(name = "windows")] 1151 extern "system" { 1152 fn glAlphaFunc(func: u32, r#ref: f32); 1153 } 1154 ::std::mem::transmute(glAlphaFunc(::std::mem::transmute(func), ::std::mem::transmute(r#ref))) 1155 } 1156 #[cfg(not(windows))] 1157 unimplemented!("Unsupported target OS"); 1158 } 1159 #[inline] 1160 pub unsafe fn glAreTexturesResident(n: i32, textures: *const u32, residences: *mut u8) -> u8 { 1161 #[cfg(windows)] 1162 { 1163 #[link(name = "windows")] 1164 extern "system" { 1165 fn glAreTexturesResident(n: i32, textures: *const u32, residences: *mut u8) -> u8; 1166 } 1167 ::std::mem::transmute(glAreTexturesResident(::std::mem::transmute(n), ::std::mem::transmute(textures), ::std::mem::transmute(residences))) 1168 } 1169 #[cfg(not(windows))] 1170 unimplemented!("Unsupported target OS"); 1171 } 1172 #[inline] 1173 pub unsafe fn glArrayElement(i: i32) { 1174 #[cfg(windows)] 1175 { 1176 #[link(name = "windows")] 1177 extern "system" { 1178 fn glArrayElement(i: i32); 1179 } 1180 ::std::mem::transmute(glArrayElement(::std::mem::transmute(i))) 1181 } 1182 #[cfg(not(windows))] 1183 unimplemented!("Unsupported target OS"); 1184 } 1185 #[inline] 1186 pub unsafe fn glBegin(mode: u32) { 1187 #[cfg(windows)] 1188 { 1189 #[link(name = "windows")] 1190 extern "system" { 1191 fn glBegin(mode: u32); 1192 } 1193 ::std::mem::transmute(glBegin(::std::mem::transmute(mode))) 1194 } 1195 #[cfg(not(windows))] 1196 unimplemented!("Unsupported target OS"); 1197 } 1198 #[inline] 1199 pub unsafe fn glBindTexture(target: u32, texture: u32) { 1200 #[cfg(windows)] 1201 { 1202 #[link(name = "windows")] 1203 extern "system" { 1204 fn glBindTexture(target: u32, texture: u32); 1205 } 1206 ::std::mem::transmute(glBindTexture(::std::mem::transmute(target), ::std::mem::transmute(texture))) 1207 } 1208 #[cfg(not(windows))] 1209 unimplemented!("Unsupported target OS"); 1210 } 1211 #[inline] 1212 pub unsafe fn glBitmap(width: i32, height: i32, xorig: f32, yorig: f32, xmove: f32, ymove: f32, bitmap: *const u8) { 1213 #[cfg(windows)] 1214 { 1215 #[link(name = "windows")] 1216 extern "system" { 1217 fn glBitmap(width: i32, height: i32, xorig: f32, yorig: f32, xmove: f32, ymove: f32, bitmap: *const u8); 1218 } 1219 ::std::mem::transmute(glBitmap(::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(xorig), ::std::mem::transmute(yorig), ::std::mem::transmute(xmove), ::std::mem::transmute(ymove), ::std::mem::transmute(bitmap))) 1220 } 1221 #[cfg(not(windows))] 1222 unimplemented!("Unsupported target OS"); 1223 } 1224 #[inline] 1225 pub unsafe fn glBlendFunc(sfactor: u32, dfactor: u32) { 1226 #[cfg(windows)] 1227 { 1228 #[link(name = "windows")] 1229 extern "system" { 1230 fn glBlendFunc(sfactor: u32, dfactor: u32); 1231 } 1232 ::std::mem::transmute(glBlendFunc(::std::mem::transmute(sfactor), ::std::mem::transmute(dfactor))) 1233 } 1234 #[cfg(not(windows))] 1235 unimplemented!("Unsupported target OS"); 1236 } 1237 #[inline] 1238 pub unsafe fn glCallList(list: u32) { 1239 #[cfg(windows)] 1240 { 1241 #[link(name = "windows")] 1242 extern "system" { 1243 fn glCallList(list: u32); 1244 } 1245 ::std::mem::transmute(glCallList(::std::mem::transmute(list))) 1246 } 1247 #[cfg(not(windows))] 1248 unimplemented!("Unsupported target OS"); 1249 } 1250 #[inline] 1251 pub unsafe fn glCallLists(n: i32, r#type: u32, lists: *const ::std::ffi::c_void) { 1252 #[cfg(windows)] 1253 { 1254 #[link(name = "windows")] 1255 extern "system" { 1256 fn glCallLists(n: i32, r#type: u32, lists: *const ::std::ffi::c_void); 1257 } 1258 ::std::mem::transmute(glCallLists(::std::mem::transmute(n), ::std::mem::transmute(r#type), ::std::mem::transmute(lists))) 1259 } 1260 #[cfg(not(windows))] 1261 unimplemented!("Unsupported target OS"); 1262 } 1263 #[inline] 1264 pub unsafe fn glClear(mask: u32) { 1265 #[cfg(windows)] 1266 { 1267 #[link(name = "windows")] 1268 extern "system" { 1269 fn glClear(mask: u32); 1270 } 1271 ::std::mem::transmute(glClear(::std::mem::transmute(mask))) 1272 } 1273 #[cfg(not(windows))] 1274 unimplemented!("Unsupported target OS"); 1275 } 1276 #[inline] 1277 pub unsafe fn glClearAccum(red: f32, green: f32, blue: f32, alpha: f32) { 1278 #[cfg(windows)] 1279 { 1280 #[link(name = "windows")] 1281 extern "system" { 1282 fn glClearAccum(red: f32, green: f32, blue: f32, alpha: f32); 1283 } 1284 ::std::mem::transmute(glClearAccum(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1285 } 1286 #[cfg(not(windows))] 1287 unimplemented!("Unsupported target OS"); 1288 } 1289 #[inline] 1290 pub unsafe fn glClearColor(red: f32, green: f32, blue: f32, alpha: f32) { 1291 #[cfg(windows)] 1292 { 1293 #[link(name = "windows")] 1294 extern "system" { 1295 fn glClearColor(red: f32, green: f32, blue: f32, alpha: f32); 1296 } 1297 ::std::mem::transmute(glClearColor(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1298 } 1299 #[cfg(not(windows))] 1300 unimplemented!("Unsupported target OS"); 1301 } 1302 #[inline] 1303 pub unsafe fn glClearDepth(depth: f64) { 1304 #[cfg(windows)] 1305 { 1306 #[link(name = "windows")] 1307 extern "system" { 1308 fn glClearDepth(depth: f64); 1309 } 1310 ::std::mem::transmute(glClearDepth(::std::mem::transmute(depth))) 1311 } 1312 #[cfg(not(windows))] 1313 unimplemented!("Unsupported target OS"); 1314 } 1315 #[inline] 1316 pub unsafe fn glClearIndex(c: f32) { 1317 #[cfg(windows)] 1318 { 1319 #[link(name = "windows")] 1320 extern "system" { 1321 fn glClearIndex(c: f32); 1322 } 1323 ::std::mem::transmute(glClearIndex(::std::mem::transmute(c))) 1324 } 1325 #[cfg(not(windows))] 1326 unimplemented!("Unsupported target OS"); 1327 } 1328 #[inline] 1329 pub unsafe fn glClearStencil(s: i32) { 1330 #[cfg(windows)] 1331 { 1332 #[link(name = "windows")] 1333 extern "system" { 1334 fn glClearStencil(s: i32); 1335 } 1336 ::std::mem::transmute(glClearStencil(::std::mem::transmute(s))) 1337 } 1338 #[cfg(not(windows))] 1339 unimplemented!("Unsupported target OS"); 1340 } 1341 #[inline] 1342 pub unsafe fn glClipPlane(plane: u32, equation: *const f64) { 1343 #[cfg(windows)] 1344 { 1345 #[link(name = "windows")] 1346 extern "system" { 1347 fn glClipPlane(plane: u32, equation: *const f64); 1348 } 1349 ::std::mem::transmute(glClipPlane(::std::mem::transmute(plane), ::std::mem::transmute(equation))) 1350 } 1351 #[cfg(not(windows))] 1352 unimplemented!("Unsupported target OS"); 1353 } 1354 #[inline] 1355 pub unsafe fn glColor3b(red: i8, green: i8, blue: i8) { 1356 #[cfg(windows)] 1357 { 1358 #[link(name = "windows")] 1359 extern "system" { 1360 fn glColor3b(red: i8, green: i8, blue: i8); 1361 } 1362 ::std::mem::transmute(glColor3b(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1363 } 1364 #[cfg(not(windows))] 1365 unimplemented!("Unsupported target OS"); 1366 } 1367 #[inline] 1368 pub unsafe fn glColor3bv(v: *const i8) { 1369 #[cfg(windows)] 1370 { 1371 #[link(name = "windows")] 1372 extern "system" { 1373 fn glColor3bv(v: *const i8); 1374 } 1375 ::std::mem::transmute(glColor3bv(::std::mem::transmute(v))) 1376 } 1377 #[cfg(not(windows))] 1378 unimplemented!("Unsupported target OS"); 1379 } 1380 #[inline] 1381 pub unsafe fn glColor3d(red: f64, green: f64, blue: f64) { 1382 #[cfg(windows)] 1383 { 1384 #[link(name = "windows")] 1385 extern "system" { 1386 fn glColor3d(red: f64, green: f64, blue: f64); 1387 } 1388 ::std::mem::transmute(glColor3d(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1389 } 1390 #[cfg(not(windows))] 1391 unimplemented!("Unsupported target OS"); 1392 } 1393 #[inline] 1394 pub unsafe fn glColor3dv(v: *const f64) { 1395 #[cfg(windows)] 1396 { 1397 #[link(name = "windows")] 1398 extern "system" { 1399 fn glColor3dv(v: *const f64); 1400 } 1401 ::std::mem::transmute(glColor3dv(::std::mem::transmute(v))) 1402 } 1403 #[cfg(not(windows))] 1404 unimplemented!("Unsupported target OS"); 1405 } 1406 #[inline] 1407 pub unsafe fn glColor3f(red: f32, green: f32, blue: f32) { 1408 #[cfg(windows)] 1409 { 1410 #[link(name = "windows")] 1411 extern "system" { 1412 fn glColor3f(red: f32, green: f32, blue: f32); 1413 } 1414 ::std::mem::transmute(glColor3f(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1415 } 1416 #[cfg(not(windows))] 1417 unimplemented!("Unsupported target OS"); 1418 } 1419 #[inline] 1420 pub unsafe fn glColor3fv(v: *const f32) { 1421 #[cfg(windows)] 1422 { 1423 #[link(name = "windows")] 1424 extern "system" { 1425 fn glColor3fv(v: *const f32); 1426 } 1427 ::std::mem::transmute(glColor3fv(::std::mem::transmute(v))) 1428 } 1429 #[cfg(not(windows))] 1430 unimplemented!("Unsupported target OS"); 1431 } 1432 #[inline] 1433 pub unsafe fn glColor3i(red: i32, green: i32, blue: i32) { 1434 #[cfg(windows)] 1435 { 1436 #[link(name = "windows")] 1437 extern "system" { 1438 fn glColor3i(red: i32, green: i32, blue: i32); 1439 } 1440 ::std::mem::transmute(glColor3i(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1441 } 1442 #[cfg(not(windows))] 1443 unimplemented!("Unsupported target OS"); 1444 } 1445 #[inline] 1446 pub unsafe fn glColor3iv(v: *const i32) { 1447 #[cfg(windows)] 1448 { 1449 #[link(name = "windows")] 1450 extern "system" { 1451 fn glColor3iv(v: *const i32); 1452 } 1453 ::std::mem::transmute(glColor3iv(::std::mem::transmute(v))) 1454 } 1455 #[cfg(not(windows))] 1456 unimplemented!("Unsupported target OS"); 1457 } 1458 #[inline] 1459 pub unsafe fn glColor3s(red: i16, green: i16, blue: i16) { 1460 #[cfg(windows)] 1461 { 1462 #[link(name = "windows")] 1463 extern "system" { 1464 fn glColor3s(red: i16, green: i16, blue: i16); 1465 } 1466 ::std::mem::transmute(glColor3s(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1467 } 1468 #[cfg(not(windows))] 1469 unimplemented!("Unsupported target OS"); 1470 } 1471 #[inline] 1472 pub unsafe fn glColor3sv(v: *const i16) { 1473 #[cfg(windows)] 1474 { 1475 #[link(name = "windows")] 1476 extern "system" { 1477 fn glColor3sv(v: *const i16); 1478 } 1479 ::std::mem::transmute(glColor3sv(::std::mem::transmute(v))) 1480 } 1481 #[cfg(not(windows))] 1482 unimplemented!("Unsupported target OS"); 1483 } 1484 #[inline] 1485 pub unsafe fn glColor3ub(red: u8, green: u8, blue: u8) { 1486 #[cfg(windows)] 1487 { 1488 #[link(name = "windows")] 1489 extern "system" { 1490 fn glColor3ub(red: u8, green: u8, blue: u8); 1491 } 1492 ::std::mem::transmute(glColor3ub(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1493 } 1494 #[cfg(not(windows))] 1495 unimplemented!("Unsupported target OS"); 1496 } 1497 #[inline] 1498 pub unsafe fn glColor3ubv(v: *const u8) { 1499 #[cfg(windows)] 1500 { 1501 #[link(name = "windows")] 1502 extern "system" { 1503 fn glColor3ubv(v: *const u8); 1504 } 1505 ::std::mem::transmute(glColor3ubv(::std::mem::transmute(v))) 1506 } 1507 #[cfg(not(windows))] 1508 unimplemented!("Unsupported target OS"); 1509 } 1510 #[inline] 1511 pub unsafe fn glColor3ui(red: u32, green: u32, blue: u32) { 1512 #[cfg(windows)] 1513 { 1514 #[link(name = "windows")] 1515 extern "system" { 1516 fn glColor3ui(red: u32, green: u32, blue: u32); 1517 } 1518 ::std::mem::transmute(glColor3ui(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1519 } 1520 #[cfg(not(windows))] 1521 unimplemented!("Unsupported target OS"); 1522 } 1523 #[inline] 1524 pub unsafe fn glColor3uiv(v: *const u32) { 1525 #[cfg(windows)] 1526 { 1527 #[link(name = "windows")] 1528 extern "system" { 1529 fn glColor3uiv(v: *const u32); 1530 } 1531 ::std::mem::transmute(glColor3uiv(::std::mem::transmute(v))) 1532 } 1533 #[cfg(not(windows))] 1534 unimplemented!("Unsupported target OS"); 1535 } 1536 #[inline] 1537 pub unsafe fn glColor3us(red: u16, green: u16, blue: u16) { 1538 #[cfg(windows)] 1539 { 1540 #[link(name = "windows")] 1541 extern "system" { 1542 fn glColor3us(red: u16, green: u16, blue: u16); 1543 } 1544 ::std::mem::transmute(glColor3us(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue))) 1545 } 1546 #[cfg(not(windows))] 1547 unimplemented!("Unsupported target OS"); 1548 } 1549 #[inline] 1550 pub unsafe fn glColor3usv(v: *const u16) { 1551 #[cfg(windows)] 1552 { 1553 #[link(name = "windows")] 1554 extern "system" { 1555 fn glColor3usv(v: *const u16); 1556 } 1557 ::std::mem::transmute(glColor3usv(::std::mem::transmute(v))) 1558 } 1559 #[cfg(not(windows))] 1560 unimplemented!("Unsupported target OS"); 1561 } 1562 #[inline] 1563 pub unsafe fn glColor4b(red: i8, green: i8, blue: i8, alpha: i8) { 1564 #[cfg(windows)] 1565 { 1566 #[link(name = "windows")] 1567 extern "system" { 1568 fn glColor4b(red: i8, green: i8, blue: i8, alpha: i8); 1569 } 1570 ::std::mem::transmute(glColor4b(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1571 } 1572 #[cfg(not(windows))] 1573 unimplemented!("Unsupported target OS"); 1574 } 1575 #[inline] 1576 pub unsafe fn glColor4bv(v: *const i8) { 1577 #[cfg(windows)] 1578 { 1579 #[link(name = "windows")] 1580 extern "system" { 1581 fn glColor4bv(v: *const i8); 1582 } 1583 ::std::mem::transmute(glColor4bv(::std::mem::transmute(v))) 1584 } 1585 #[cfg(not(windows))] 1586 unimplemented!("Unsupported target OS"); 1587 } 1588 #[inline] 1589 pub unsafe fn glColor4d(red: f64, green: f64, blue: f64, alpha: f64) { 1590 #[cfg(windows)] 1591 { 1592 #[link(name = "windows")] 1593 extern "system" { 1594 fn glColor4d(red: f64, green: f64, blue: f64, alpha: f64); 1595 } 1596 ::std::mem::transmute(glColor4d(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1597 } 1598 #[cfg(not(windows))] 1599 unimplemented!("Unsupported target OS"); 1600 } 1601 #[inline] 1602 pub unsafe fn glColor4dv(v: *const f64) { 1603 #[cfg(windows)] 1604 { 1605 #[link(name = "windows")] 1606 extern "system" { 1607 fn glColor4dv(v: *const f64); 1608 } 1609 ::std::mem::transmute(glColor4dv(::std::mem::transmute(v))) 1610 } 1611 #[cfg(not(windows))] 1612 unimplemented!("Unsupported target OS"); 1613 } 1614 #[inline] 1615 pub unsafe fn glColor4f(red: f32, green: f32, blue: f32, alpha: f32) { 1616 #[cfg(windows)] 1617 { 1618 #[link(name = "windows")] 1619 extern "system" { 1620 fn glColor4f(red: f32, green: f32, blue: f32, alpha: f32); 1621 } 1622 ::std::mem::transmute(glColor4f(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1623 } 1624 #[cfg(not(windows))] 1625 unimplemented!("Unsupported target OS"); 1626 } 1627 #[inline] 1628 pub unsafe fn glColor4fv(v: *const f32) { 1629 #[cfg(windows)] 1630 { 1631 #[link(name = "windows")] 1632 extern "system" { 1633 fn glColor4fv(v: *const f32); 1634 } 1635 ::std::mem::transmute(glColor4fv(::std::mem::transmute(v))) 1636 } 1637 #[cfg(not(windows))] 1638 unimplemented!("Unsupported target OS"); 1639 } 1640 #[inline] 1641 pub unsafe fn glColor4i(red: i32, green: i32, blue: i32, alpha: i32) { 1642 #[cfg(windows)] 1643 { 1644 #[link(name = "windows")] 1645 extern "system" { 1646 fn glColor4i(red: i32, green: i32, blue: i32, alpha: i32); 1647 } 1648 ::std::mem::transmute(glColor4i(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1649 } 1650 #[cfg(not(windows))] 1651 unimplemented!("Unsupported target OS"); 1652 } 1653 #[inline] 1654 pub unsafe fn glColor4iv(v: *const i32) { 1655 #[cfg(windows)] 1656 { 1657 #[link(name = "windows")] 1658 extern "system" { 1659 fn glColor4iv(v: *const i32); 1660 } 1661 ::std::mem::transmute(glColor4iv(::std::mem::transmute(v))) 1662 } 1663 #[cfg(not(windows))] 1664 unimplemented!("Unsupported target OS"); 1665 } 1666 #[inline] 1667 pub unsafe fn glColor4s(red: i16, green: i16, blue: i16, alpha: i16) { 1668 #[cfg(windows)] 1669 { 1670 #[link(name = "windows")] 1671 extern "system" { 1672 fn glColor4s(red: i16, green: i16, blue: i16, alpha: i16); 1673 } 1674 ::std::mem::transmute(glColor4s(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1675 } 1676 #[cfg(not(windows))] 1677 unimplemented!("Unsupported target OS"); 1678 } 1679 #[inline] 1680 pub unsafe fn glColor4sv(v: *const i16) { 1681 #[cfg(windows)] 1682 { 1683 #[link(name = "windows")] 1684 extern "system" { 1685 fn glColor4sv(v: *const i16); 1686 } 1687 ::std::mem::transmute(glColor4sv(::std::mem::transmute(v))) 1688 } 1689 #[cfg(not(windows))] 1690 unimplemented!("Unsupported target OS"); 1691 } 1692 #[inline] 1693 pub unsafe fn glColor4ub(red: u8, green: u8, blue: u8, alpha: u8) { 1694 #[cfg(windows)] 1695 { 1696 #[link(name = "windows")] 1697 extern "system" { 1698 fn glColor4ub(red: u8, green: u8, blue: u8, alpha: u8); 1699 } 1700 ::std::mem::transmute(glColor4ub(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1701 } 1702 #[cfg(not(windows))] 1703 unimplemented!("Unsupported target OS"); 1704 } 1705 #[inline] 1706 pub unsafe fn glColor4ubv(v: *const u8) { 1707 #[cfg(windows)] 1708 { 1709 #[link(name = "windows")] 1710 extern "system" { 1711 fn glColor4ubv(v: *const u8); 1712 } 1713 ::std::mem::transmute(glColor4ubv(::std::mem::transmute(v))) 1714 } 1715 #[cfg(not(windows))] 1716 unimplemented!("Unsupported target OS"); 1717 } 1718 #[inline] 1719 pub unsafe fn glColor4ui(red: u32, green: u32, blue: u32, alpha: u32) { 1720 #[cfg(windows)] 1721 { 1722 #[link(name = "windows")] 1723 extern "system" { 1724 fn glColor4ui(red: u32, green: u32, blue: u32, alpha: u32); 1725 } 1726 ::std::mem::transmute(glColor4ui(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1727 } 1728 #[cfg(not(windows))] 1729 unimplemented!("Unsupported target OS"); 1730 } 1731 #[inline] 1732 pub unsafe fn glColor4uiv(v: *const u32) { 1733 #[cfg(windows)] 1734 { 1735 #[link(name = "windows")] 1736 extern "system" { 1737 fn glColor4uiv(v: *const u32); 1738 } 1739 ::std::mem::transmute(glColor4uiv(::std::mem::transmute(v))) 1740 } 1741 #[cfg(not(windows))] 1742 unimplemented!("Unsupported target OS"); 1743 } 1744 #[inline] 1745 pub unsafe fn glColor4us(red: u16, green: u16, blue: u16, alpha: u16) { 1746 #[cfg(windows)] 1747 { 1748 #[link(name = "windows")] 1749 extern "system" { 1750 fn glColor4us(red: u16, green: u16, blue: u16, alpha: u16); 1751 } 1752 ::std::mem::transmute(glColor4us(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1753 } 1754 #[cfg(not(windows))] 1755 unimplemented!("Unsupported target OS"); 1756 } 1757 #[inline] 1758 pub unsafe fn glColor4usv(v: *const u16) { 1759 #[cfg(windows)] 1760 { 1761 #[link(name = "windows")] 1762 extern "system" { 1763 fn glColor4usv(v: *const u16); 1764 } 1765 ::std::mem::transmute(glColor4usv(::std::mem::transmute(v))) 1766 } 1767 #[cfg(not(windows))] 1768 unimplemented!("Unsupported target OS"); 1769 } 1770 #[inline] 1771 pub unsafe fn glColorMask(red: u8, green: u8, blue: u8, alpha: u8) { 1772 #[cfg(windows)] 1773 { 1774 #[link(name = "windows")] 1775 extern "system" { 1776 fn glColorMask(red: u8, green: u8, blue: u8, alpha: u8); 1777 } 1778 ::std::mem::transmute(glColorMask(::std::mem::transmute(red), ::std::mem::transmute(green), ::std::mem::transmute(blue), ::std::mem::transmute(alpha))) 1779 } 1780 #[cfg(not(windows))] 1781 unimplemented!("Unsupported target OS"); 1782 } 1783 #[inline] 1784 pub unsafe fn glColorMaterial(face: u32, mode: u32) { 1785 #[cfg(windows)] 1786 { 1787 #[link(name = "windows")] 1788 extern "system" { 1789 fn glColorMaterial(face: u32, mode: u32); 1790 } 1791 ::std::mem::transmute(glColorMaterial(::std::mem::transmute(face), ::std::mem::transmute(mode))) 1792 } 1793 #[cfg(not(windows))] 1794 unimplemented!("Unsupported target OS"); 1795 } 1796 #[inline] 1797 pub unsafe fn glColorPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 1798 #[cfg(windows)] 1799 { 1800 #[link(name = "windows")] 1801 extern "system" { 1802 fn glColorPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void); 1803 } 1804 ::std::mem::transmute(glColorPointer(::std::mem::transmute(size), ::std::mem::transmute(r#type), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 1805 } 1806 #[cfg(not(windows))] 1807 unimplemented!("Unsupported target OS"); 1808 } 1809 #[inline] 1810 pub unsafe fn glCopyPixels(x: i32, y: i32, width: i32, height: i32, r#type: u32) { 1811 #[cfg(windows)] 1812 { 1813 #[link(name = "windows")] 1814 extern "system" { 1815 fn glCopyPixels(x: i32, y: i32, width: i32, height: i32, r#type: u32); 1816 } 1817 ::std::mem::transmute(glCopyPixels(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(r#type))) 1818 } 1819 #[cfg(not(windows))] 1820 unimplemented!("Unsupported target OS"); 1821 } 1822 #[inline] 1823 pub unsafe fn glCopyTexImage1D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, border: i32) { 1824 #[cfg(windows)] 1825 { 1826 #[link(name = "windows")] 1827 extern "system" { 1828 fn glCopyTexImage1D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, border: i32); 1829 } 1830 ::std::mem::transmute(glCopyTexImage1D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(internalformat), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(border))) 1831 } 1832 #[cfg(not(windows))] 1833 unimplemented!("Unsupported target OS"); 1834 } 1835 #[inline] 1836 pub unsafe fn glCopyTexImage2D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32) { 1837 #[cfg(windows)] 1838 { 1839 #[link(name = "windows")] 1840 extern "system" { 1841 fn glCopyTexImage2D(target: u32, level: i32, internalformat: u32, x: i32, y: i32, width: i32, height: i32, border: i32); 1842 } 1843 ::std::mem::transmute(glCopyTexImage2D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(internalformat), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(border))) 1844 } 1845 #[cfg(not(windows))] 1846 unimplemented!("Unsupported target OS"); 1847 } 1848 #[inline] 1849 pub unsafe fn glCopyTexSubImage1D(target: u32, level: i32, xoffset: i32, x: i32, y: i32, width: i32) { 1850 #[cfg(windows)] 1851 { 1852 #[link(name = "windows")] 1853 extern "system" { 1854 fn glCopyTexSubImage1D(target: u32, level: i32, xoffset: i32, x: i32, y: i32, width: i32); 1855 } 1856 ::std::mem::transmute(glCopyTexSubImage1D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(xoffset), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width))) 1857 } 1858 #[cfg(not(windows))] 1859 unimplemented!("Unsupported target OS"); 1860 } 1861 #[inline] 1862 pub unsafe fn glCopyTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32) { 1863 #[cfg(windows)] 1864 { 1865 #[link(name = "windows")] 1866 extern "system" { 1867 fn glCopyTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, x: i32, y: i32, width: i32, height: i32); 1868 } 1869 ::std::mem::transmute(glCopyTexSubImage2D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(xoffset), ::std::mem::transmute(yoffset), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height))) 1870 } 1871 #[cfg(not(windows))] 1872 unimplemented!("Unsupported target OS"); 1873 } 1874 #[inline] 1875 pub unsafe fn glCullFace(mode: u32) { 1876 #[cfg(windows)] 1877 { 1878 #[link(name = "windows")] 1879 extern "system" { 1880 fn glCullFace(mode: u32); 1881 } 1882 ::std::mem::transmute(glCullFace(::std::mem::transmute(mode))) 1883 } 1884 #[cfg(not(windows))] 1885 unimplemented!("Unsupported target OS"); 1886 } 1887 #[inline] 1888 pub unsafe fn glDeleteLists(list: u32, range: i32) { 1889 #[cfg(windows)] 1890 { 1891 #[link(name = "windows")] 1892 extern "system" { 1893 fn glDeleteLists(list: u32, range: i32); 1894 } 1895 ::std::mem::transmute(glDeleteLists(::std::mem::transmute(list), ::std::mem::transmute(range))) 1896 } 1897 #[cfg(not(windows))] 1898 unimplemented!("Unsupported target OS"); 1899 } 1900 #[inline] 1901 pub unsafe fn glDeleteTextures(n: i32, textures: *const u32) { 1902 #[cfg(windows)] 1903 { 1904 #[link(name = "windows")] 1905 extern "system" { 1906 fn glDeleteTextures(n: i32, textures: *const u32); 1907 } 1908 ::std::mem::transmute(glDeleteTextures(::std::mem::transmute(n), ::std::mem::transmute(textures))) 1909 } 1910 #[cfg(not(windows))] 1911 unimplemented!("Unsupported target OS"); 1912 } 1913 #[inline] 1914 pub unsafe fn glDepthFunc(func: u32) { 1915 #[cfg(windows)] 1916 { 1917 #[link(name = "windows")] 1918 extern "system" { 1919 fn glDepthFunc(func: u32); 1920 } 1921 ::std::mem::transmute(glDepthFunc(::std::mem::transmute(func))) 1922 } 1923 #[cfg(not(windows))] 1924 unimplemented!("Unsupported target OS"); 1925 } 1926 #[inline] 1927 pub unsafe fn glDepthMask(flag: u8) { 1928 #[cfg(windows)] 1929 { 1930 #[link(name = "windows")] 1931 extern "system" { 1932 fn glDepthMask(flag: u8); 1933 } 1934 ::std::mem::transmute(glDepthMask(::std::mem::transmute(flag))) 1935 } 1936 #[cfg(not(windows))] 1937 unimplemented!("Unsupported target OS"); 1938 } 1939 #[inline] 1940 pub unsafe fn glDepthRange(znear: f64, zfar: f64) { 1941 #[cfg(windows)] 1942 { 1943 #[link(name = "windows")] 1944 extern "system" { 1945 fn glDepthRange(znear: f64, zfar: f64); 1946 } 1947 ::std::mem::transmute(glDepthRange(::std::mem::transmute(znear), ::std::mem::transmute(zfar))) 1948 } 1949 #[cfg(not(windows))] 1950 unimplemented!("Unsupported target OS"); 1951 } 1952 #[inline] 1953 pub unsafe fn glDisable(cap: u32) { 1954 #[cfg(windows)] 1955 { 1956 #[link(name = "windows")] 1957 extern "system" { 1958 fn glDisable(cap: u32); 1959 } 1960 ::std::mem::transmute(glDisable(::std::mem::transmute(cap))) 1961 } 1962 #[cfg(not(windows))] 1963 unimplemented!("Unsupported target OS"); 1964 } 1965 #[inline] 1966 pub unsafe fn glDisableClientState(array: u32) { 1967 #[cfg(windows)] 1968 { 1969 #[link(name = "windows")] 1970 extern "system" { 1971 fn glDisableClientState(array: u32); 1972 } 1973 ::std::mem::transmute(glDisableClientState(::std::mem::transmute(array))) 1974 } 1975 #[cfg(not(windows))] 1976 unimplemented!("Unsupported target OS"); 1977 } 1978 #[inline] 1979 pub unsafe fn glDrawArrays(mode: u32, first: i32, count: i32) { 1980 #[cfg(windows)] 1981 { 1982 #[link(name = "windows")] 1983 extern "system" { 1984 fn glDrawArrays(mode: u32, first: i32, count: i32); 1985 } 1986 ::std::mem::transmute(glDrawArrays(::std::mem::transmute(mode), ::std::mem::transmute(first), ::std::mem::transmute(count))) 1987 } 1988 #[cfg(not(windows))] 1989 unimplemented!("Unsupported target OS"); 1990 } 1991 #[inline] 1992 pub unsafe fn glDrawBuffer(mode: u32) { 1993 #[cfg(windows)] 1994 { 1995 #[link(name = "windows")] 1996 extern "system" { 1997 fn glDrawBuffer(mode: u32); 1998 } 1999 ::std::mem::transmute(glDrawBuffer(::std::mem::transmute(mode))) 2000 } 2001 #[cfg(not(windows))] 2002 unimplemented!("Unsupported target OS"); 2003 } 2004 #[inline] 2005 pub unsafe fn glDrawElements(mode: u32, count: i32, r#type: u32, indices: *const ::std::ffi::c_void) { 2006 #[cfg(windows)] 2007 { 2008 #[link(name = "windows")] 2009 extern "system" { 2010 fn glDrawElements(mode: u32, count: i32, r#type: u32, indices: *const ::std::ffi::c_void); 2011 } 2012 ::std::mem::transmute(glDrawElements(::std::mem::transmute(mode), ::std::mem::transmute(count), ::std::mem::transmute(r#type), ::std::mem::transmute(indices))) 2013 } 2014 #[cfg(not(windows))] 2015 unimplemented!("Unsupported target OS"); 2016 } 2017 #[inline] 2018 pub unsafe fn glDrawPixels(width: i32, height: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void) { 2019 #[cfg(windows)] 2020 { 2021 #[link(name = "windows")] 2022 extern "system" { 2023 fn glDrawPixels(width: i32, height: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void); 2024 } 2025 ::std::mem::transmute(glDrawPixels(::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 2026 } 2027 #[cfg(not(windows))] 2028 unimplemented!("Unsupported target OS"); 2029 } 2030 #[inline] 2031 pub unsafe fn glEdgeFlag(flag: u8) { 2032 #[cfg(windows)] 2033 { 2034 #[link(name = "windows")] 2035 extern "system" { 2036 fn glEdgeFlag(flag: u8); 2037 } 2038 ::std::mem::transmute(glEdgeFlag(::std::mem::transmute(flag))) 2039 } 2040 #[cfg(not(windows))] 2041 unimplemented!("Unsupported target OS"); 2042 } 2043 #[inline] 2044 pub unsafe fn glEdgeFlagPointer(stride: i32, pointer: *const ::std::ffi::c_void) { 2045 #[cfg(windows)] 2046 { 2047 #[link(name = "windows")] 2048 extern "system" { 2049 fn glEdgeFlagPointer(stride: i32, pointer: *const ::std::ffi::c_void); 2050 } 2051 ::std::mem::transmute(glEdgeFlagPointer(::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 2052 } 2053 #[cfg(not(windows))] 2054 unimplemented!("Unsupported target OS"); 2055 } 2056 #[inline] 2057 pub unsafe fn glEdgeFlagv(flag: *const u8) { 2058 #[cfg(windows)] 2059 { 2060 #[link(name = "windows")] 2061 extern "system" { 2062 fn glEdgeFlagv(flag: *const u8); 2063 } 2064 ::std::mem::transmute(glEdgeFlagv(::std::mem::transmute(flag))) 2065 } 2066 #[cfg(not(windows))] 2067 unimplemented!("Unsupported target OS"); 2068 } 2069 #[inline] 2070 pub unsafe fn glEnable(cap: u32) { 2071 #[cfg(windows)] 2072 { 2073 #[link(name = "windows")] 2074 extern "system" { 2075 fn glEnable(cap: u32); 2076 } 2077 ::std::mem::transmute(glEnable(::std::mem::transmute(cap))) 2078 } 2079 #[cfg(not(windows))] 2080 unimplemented!("Unsupported target OS"); 2081 } 2082 #[inline] 2083 pub unsafe fn glEnableClientState(array: u32) { 2084 #[cfg(windows)] 2085 { 2086 #[link(name = "windows")] 2087 extern "system" { 2088 fn glEnableClientState(array: u32); 2089 } 2090 ::std::mem::transmute(glEnableClientState(::std::mem::transmute(array))) 2091 } 2092 #[cfg(not(windows))] 2093 unimplemented!("Unsupported target OS"); 2094 } 2095 #[inline] 2096 pub unsafe fn glEnd() { 2097 #[cfg(windows)] 2098 { 2099 #[link(name = "windows")] 2100 extern "system" { 2101 fn glEnd(); 2102 } 2103 ::std::mem::transmute(glEnd()) 2104 } 2105 #[cfg(not(windows))] 2106 unimplemented!("Unsupported target OS"); 2107 } 2108 #[inline] 2109 pub unsafe fn glEndList() { 2110 #[cfg(windows)] 2111 { 2112 #[link(name = "windows")] 2113 extern "system" { 2114 fn glEndList(); 2115 } 2116 ::std::mem::transmute(glEndList()) 2117 } 2118 #[cfg(not(windows))] 2119 unimplemented!("Unsupported target OS"); 2120 } 2121 #[inline] 2122 pub unsafe fn glEvalCoord1d(u: f64) { 2123 #[cfg(windows)] 2124 { 2125 #[link(name = "windows")] 2126 extern "system" { 2127 fn glEvalCoord1d(u: f64); 2128 } 2129 ::std::mem::transmute(glEvalCoord1d(::std::mem::transmute(u))) 2130 } 2131 #[cfg(not(windows))] 2132 unimplemented!("Unsupported target OS"); 2133 } 2134 #[inline] 2135 pub unsafe fn glEvalCoord1dv(u: *const f64) { 2136 #[cfg(windows)] 2137 { 2138 #[link(name = "windows")] 2139 extern "system" { 2140 fn glEvalCoord1dv(u: *const f64); 2141 } 2142 ::std::mem::transmute(glEvalCoord1dv(::std::mem::transmute(u))) 2143 } 2144 #[cfg(not(windows))] 2145 unimplemented!("Unsupported target OS"); 2146 } 2147 #[inline] 2148 pub unsafe fn glEvalCoord1f(u: f32) { 2149 #[cfg(windows)] 2150 { 2151 #[link(name = "windows")] 2152 extern "system" { 2153 fn glEvalCoord1f(u: f32); 2154 } 2155 ::std::mem::transmute(glEvalCoord1f(::std::mem::transmute(u))) 2156 } 2157 #[cfg(not(windows))] 2158 unimplemented!("Unsupported target OS"); 2159 } 2160 #[inline] 2161 pub unsafe fn glEvalCoord1fv(u: *const f32) { 2162 #[cfg(windows)] 2163 { 2164 #[link(name = "windows")] 2165 extern "system" { 2166 fn glEvalCoord1fv(u: *const f32); 2167 } 2168 ::std::mem::transmute(glEvalCoord1fv(::std::mem::transmute(u))) 2169 } 2170 #[cfg(not(windows))] 2171 unimplemented!("Unsupported target OS"); 2172 } 2173 #[inline] 2174 pub unsafe fn glEvalCoord2d(u: f64, v: f64) { 2175 #[cfg(windows)] 2176 { 2177 #[link(name = "windows")] 2178 extern "system" { 2179 fn glEvalCoord2d(u: f64, v: f64); 2180 } 2181 ::std::mem::transmute(glEvalCoord2d(::std::mem::transmute(u), ::std::mem::transmute(v))) 2182 } 2183 #[cfg(not(windows))] 2184 unimplemented!("Unsupported target OS"); 2185 } 2186 #[inline] 2187 pub unsafe fn glEvalCoord2dv(u: *const f64) { 2188 #[cfg(windows)] 2189 { 2190 #[link(name = "windows")] 2191 extern "system" { 2192 fn glEvalCoord2dv(u: *const f64); 2193 } 2194 ::std::mem::transmute(glEvalCoord2dv(::std::mem::transmute(u))) 2195 } 2196 #[cfg(not(windows))] 2197 unimplemented!("Unsupported target OS"); 2198 } 2199 #[inline] 2200 pub unsafe fn glEvalCoord2f(u: f32, v: f32) { 2201 #[cfg(windows)] 2202 { 2203 #[link(name = "windows")] 2204 extern "system" { 2205 fn glEvalCoord2f(u: f32, v: f32); 2206 } 2207 ::std::mem::transmute(glEvalCoord2f(::std::mem::transmute(u), ::std::mem::transmute(v))) 2208 } 2209 #[cfg(not(windows))] 2210 unimplemented!("Unsupported target OS"); 2211 } 2212 #[inline] 2213 pub unsafe fn glEvalCoord2fv(u: *const f32) { 2214 #[cfg(windows)] 2215 { 2216 #[link(name = "windows")] 2217 extern "system" { 2218 fn glEvalCoord2fv(u: *const f32); 2219 } 2220 ::std::mem::transmute(glEvalCoord2fv(::std::mem::transmute(u))) 2221 } 2222 #[cfg(not(windows))] 2223 unimplemented!("Unsupported target OS"); 2224 } 2225 #[inline] 2226 pub unsafe fn glEvalMesh1(mode: u32, i1: i32, i2: i32) { 2227 #[cfg(windows)] 2228 { 2229 #[link(name = "windows")] 2230 extern "system" { 2231 fn glEvalMesh1(mode: u32, i1: i32, i2: i32); 2232 } 2233 ::std::mem::transmute(glEvalMesh1(::std::mem::transmute(mode), ::std::mem::transmute(i1), ::std::mem::transmute(i2))) 2234 } 2235 #[cfg(not(windows))] 2236 unimplemented!("Unsupported target OS"); 2237 } 2238 #[inline] 2239 pub unsafe fn glEvalMesh2(mode: u32, i1: i32, i2: i32, j1: i32, j2: i32) { 2240 #[cfg(windows)] 2241 { 2242 #[link(name = "windows")] 2243 extern "system" { 2244 fn glEvalMesh2(mode: u32, i1: i32, i2: i32, j1: i32, j2: i32); 2245 } 2246 ::std::mem::transmute(glEvalMesh2(::std::mem::transmute(mode), ::std::mem::transmute(i1), ::std::mem::transmute(i2), ::std::mem::transmute(j1), ::std::mem::transmute(j2))) 2247 } 2248 #[cfg(not(windows))] 2249 unimplemented!("Unsupported target OS"); 2250 } 2251 #[inline] 2252 pub unsafe fn glEvalPoint1(i: i32) { 2253 #[cfg(windows)] 2254 { 2255 #[link(name = "windows")] 2256 extern "system" { 2257 fn glEvalPoint1(i: i32); 2258 } 2259 ::std::mem::transmute(glEvalPoint1(::std::mem::transmute(i))) 2260 } 2261 #[cfg(not(windows))] 2262 unimplemented!("Unsupported target OS"); 2263 } 2264 #[inline] 2265 pub unsafe fn glEvalPoint2(i: i32, j: i32) { 2266 #[cfg(windows)] 2267 { 2268 #[link(name = "windows")] 2269 extern "system" { 2270 fn glEvalPoint2(i: i32, j: i32); 2271 } 2272 ::std::mem::transmute(glEvalPoint2(::std::mem::transmute(i), ::std::mem::transmute(j))) 2273 } 2274 #[cfg(not(windows))] 2275 unimplemented!("Unsupported target OS"); 2276 } 2277 #[inline] 2278 pub unsafe fn glFeedbackBuffer(size: i32, r#type: u32, buffer: *mut f32) { 2279 #[cfg(windows)] 2280 { 2281 #[link(name = "windows")] 2282 extern "system" { 2283 fn glFeedbackBuffer(size: i32, r#type: u32, buffer: *mut f32); 2284 } 2285 ::std::mem::transmute(glFeedbackBuffer(::std::mem::transmute(size), ::std::mem::transmute(r#type), ::std::mem::transmute(buffer))) 2286 } 2287 #[cfg(not(windows))] 2288 unimplemented!("Unsupported target OS"); 2289 } 2290 #[inline] 2291 pub unsafe fn glFinish() { 2292 #[cfg(windows)] 2293 { 2294 #[link(name = "windows")] 2295 extern "system" { 2296 fn glFinish(); 2297 } 2298 ::std::mem::transmute(glFinish()) 2299 } 2300 #[cfg(not(windows))] 2301 unimplemented!("Unsupported target OS"); 2302 } 2303 #[inline] 2304 pub unsafe fn glFlush() { 2305 #[cfg(windows)] 2306 { 2307 #[link(name = "windows")] 2308 extern "system" { 2309 fn glFlush(); 2310 } 2311 ::std::mem::transmute(glFlush()) 2312 } 2313 #[cfg(not(windows))] 2314 unimplemented!("Unsupported target OS"); 2315 } 2316 #[inline] 2317 pub unsafe fn glFogf(pname: u32, param1: f32) { 2318 #[cfg(windows)] 2319 { 2320 #[link(name = "windows")] 2321 extern "system" { 2322 fn glFogf(pname: u32, param1: f32); 2323 } 2324 ::std::mem::transmute(glFogf(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 2325 } 2326 #[cfg(not(windows))] 2327 unimplemented!("Unsupported target OS"); 2328 } 2329 #[inline] 2330 pub unsafe fn glFogfv(pname: u32, params: *const f32) { 2331 #[cfg(windows)] 2332 { 2333 #[link(name = "windows")] 2334 extern "system" { 2335 fn glFogfv(pname: u32, params: *const f32); 2336 } 2337 ::std::mem::transmute(glFogfv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2338 } 2339 #[cfg(not(windows))] 2340 unimplemented!("Unsupported target OS"); 2341 } 2342 #[inline] 2343 pub unsafe fn glFogi(pname: u32, param1: i32) { 2344 #[cfg(windows)] 2345 { 2346 #[link(name = "windows")] 2347 extern "system" { 2348 fn glFogi(pname: u32, param1: i32); 2349 } 2350 ::std::mem::transmute(glFogi(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 2351 } 2352 #[cfg(not(windows))] 2353 unimplemented!("Unsupported target OS"); 2354 } 2355 #[inline] 2356 pub unsafe fn glFogiv(pname: u32, params: *const i32) { 2357 #[cfg(windows)] 2358 { 2359 #[link(name = "windows")] 2360 extern "system" { 2361 fn glFogiv(pname: u32, params: *const i32); 2362 } 2363 ::std::mem::transmute(glFogiv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2364 } 2365 #[cfg(not(windows))] 2366 unimplemented!("Unsupported target OS"); 2367 } 2368 #[inline] 2369 pub unsafe fn glFrontFace(mode: u32) { 2370 #[cfg(windows)] 2371 { 2372 #[link(name = "windows")] 2373 extern "system" { 2374 fn glFrontFace(mode: u32); 2375 } 2376 ::std::mem::transmute(glFrontFace(::std::mem::transmute(mode))) 2377 } 2378 #[cfg(not(windows))] 2379 unimplemented!("Unsupported target OS"); 2380 } 2381 #[inline] 2382 pub unsafe fn glFrustum(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64) { 2383 #[cfg(windows)] 2384 { 2385 #[link(name = "windows")] 2386 extern "system" { 2387 fn glFrustum(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64); 2388 } 2389 ::std::mem::transmute(glFrustum(::std::mem::transmute(left), ::std::mem::transmute(right), ::std::mem::transmute(bottom), ::std::mem::transmute(top), ::std::mem::transmute(znear), ::std::mem::transmute(zfar))) 2390 } 2391 #[cfg(not(windows))] 2392 unimplemented!("Unsupported target OS"); 2393 } 2394 #[inline] 2395 pub unsafe fn glGenLists(range: i32) -> u32 { 2396 #[cfg(windows)] 2397 { 2398 #[link(name = "windows")] 2399 extern "system" { 2400 fn glGenLists(range: i32) -> u32; 2401 } 2402 ::std::mem::transmute(glGenLists(::std::mem::transmute(range))) 2403 } 2404 #[cfg(not(windows))] 2405 unimplemented!("Unsupported target OS"); 2406 } 2407 #[inline] 2408 pub unsafe fn glGenTextures(n: i32, textures: *mut u32) { 2409 #[cfg(windows)] 2410 { 2411 #[link(name = "windows")] 2412 extern "system" { 2413 fn glGenTextures(n: i32, textures: *mut u32); 2414 } 2415 ::std::mem::transmute(glGenTextures(::std::mem::transmute(n), ::std::mem::transmute(textures))) 2416 } 2417 #[cfg(not(windows))] 2418 unimplemented!("Unsupported target OS"); 2419 } 2420 #[inline] 2421 pub unsafe fn glGetBooleanv(pname: u32, params: *mut u8) { 2422 #[cfg(windows)] 2423 { 2424 #[link(name = "windows")] 2425 extern "system" { 2426 fn glGetBooleanv(pname: u32, params: *mut u8); 2427 } 2428 ::std::mem::transmute(glGetBooleanv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2429 } 2430 #[cfg(not(windows))] 2431 unimplemented!("Unsupported target OS"); 2432 } 2433 #[inline] 2434 pub unsafe fn glGetClipPlane(plane: u32, equation: *mut f64) { 2435 #[cfg(windows)] 2436 { 2437 #[link(name = "windows")] 2438 extern "system" { 2439 fn glGetClipPlane(plane: u32, equation: *mut f64); 2440 } 2441 ::std::mem::transmute(glGetClipPlane(::std::mem::transmute(plane), ::std::mem::transmute(equation))) 2442 } 2443 #[cfg(not(windows))] 2444 unimplemented!("Unsupported target OS"); 2445 } 2446 #[inline] 2447 pub unsafe fn glGetDoublev(pname: u32, params: *mut f64) { 2448 #[cfg(windows)] 2449 { 2450 #[link(name = "windows")] 2451 extern "system" { 2452 fn glGetDoublev(pname: u32, params: *mut f64); 2453 } 2454 ::std::mem::transmute(glGetDoublev(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2455 } 2456 #[cfg(not(windows))] 2457 unimplemented!("Unsupported target OS"); 2458 } 2459 #[inline] 2460 pub unsafe fn glGetError() -> u32 { 2461 #[cfg(windows)] 2462 { 2463 #[link(name = "windows")] 2464 extern "system" { 2465 fn glGetError() -> u32; 2466 } 2467 ::std::mem::transmute(glGetError()) 2468 } 2469 #[cfg(not(windows))] 2470 unimplemented!("Unsupported target OS"); 2471 } 2472 #[inline] 2473 pub unsafe fn glGetFloatv(pname: u32, params: *mut f32) { 2474 #[cfg(windows)] 2475 { 2476 #[link(name = "windows")] 2477 extern "system" { 2478 fn glGetFloatv(pname: u32, params: *mut f32); 2479 } 2480 ::std::mem::transmute(glGetFloatv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2481 } 2482 #[cfg(not(windows))] 2483 unimplemented!("Unsupported target OS"); 2484 } 2485 #[inline] 2486 pub unsafe fn glGetIntegerv(pname: u32, params: *mut i32) { 2487 #[cfg(windows)] 2488 { 2489 #[link(name = "windows")] 2490 extern "system" { 2491 fn glGetIntegerv(pname: u32, params: *mut i32); 2492 } 2493 ::std::mem::transmute(glGetIntegerv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2494 } 2495 #[cfg(not(windows))] 2496 unimplemented!("Unsupported target OS"); 2497 } 2498 #[inline] 2499 pub unsafe fn glGetLightfv(light: u32, pname: u32, params: *mut f32) { 2500 #[cfg(windows)] 2501 { 2502 #[link(name = "windows")] 2503 extern "system" { 2504 fn glGetLightfv(light: u32, pname: u32, params: *mut f32); 2505 } 2506 ::std::mem::transmute(glGetLightfv(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2507 } 2508 #[cfg(not(windows))] 2509 unimplemented!("Unsupported target OS"); 2510 } 2511 #[inline] 2512 pub unsafe fn glGetLightiv(light: u32, pname: u32, params: *mut i32) { 2513 #[cfg(windows)] 2514 { 2515 #[link(name = "windows")] 2516 extern "system" { 2517 fn glGetLightiv(light: u32, pname: u32, params: *mut i32); 2518 } 2519 ::std::mem::transmute(glGetLightiv(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2520 } 2521 #[cfg(not(windows))] 2522 unimplemented!("Unsupported target OS"); 2523 } 2524 #[inline] 2525 pub unsafe fn glGetMapdv(target: u32, query: u32, v: *mut f64) { 2526 #[cfg(windows)] 2527 { 2528 #[link(name = "windows")] 2529 extern "system" { 2530 fn glGetMapdv(target: u32, query: u32, v: *mut f64); 2531 } 2532 ::std::mem::transmute(glGetMapdv(::std::mem::transmute(target), ::std::mem::transmute(query), ::std::mem::transmute(v))) 2533 } 2534 #[cfg(not(windows))] 2535 unimplemented!("Unsupported target OS"); 2536 } 2537 #[inline] 2538 pub unsafe fn glGetMapfv(target: u32, query: u32, v: *mut f32) { 2539 #[cfg(windows)] 2540 { 2541 #[link(name = "windows")] 2542 extern "system" { 2543 fn glGetMapfv(target: u32, query: u32, v: *mut f32); 2544 } 2545 ::std::mem::transmute(glGetMapfv(::std::mem::transmute(target), ::std::mem::transmute(query), ::std::mem::transmute(v))) 2546 } 2547 #[cfg(not(windows))] 2548 unimplemented!("Unsupported target OS"); 2549 } 2550 #[inline] 2551 pub unsafe fn glGetMapiv(target: u32, query: u32, v: *mut i32) { 2552 #[cfg(windows)] 2553 { 2554 #[link(name = "windows")] 2555 extern "system" { 2556 fn glGetMapiv(target: u32, query: u32, v: *mut i32); 2557 } 2558 ::std::mem::transmute(glGetMapiv(::std::mem::transmute(target), ::std::mem::transmute(query), ::std::mem::transmute(v))) 2559 } 2560 #[cfg(not(windows))] 2561 unimplemented!("Unsupported target OS"); 2562 } 2563 #[inline] 2564 pub unsafe fn glGetMaterialfv(face: u32, pname: u32, params: *mut f32) { 2565 #[cfg(windows)] 2566 { 2567 #[link(name = "windows")] 2568 extern "system" { 2569 fn glGetMaterialfv(face: u32, pname: u32, params: *mut f32); 2570 } 2571 ::std::mem::transmute(glGetMaterialfv(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2572 } 2573 #[cfg(not(windows))] 2574 unimplemented!("Unsupported target OS"); 2575 } 2576 #[inline] 2577 pub unsafe fn glGetMaterialiv(face: u32, pname: u32, params: *mut i32) { 2578 #[cfg(windows)] 2579 { 2580 #[link(name = "windows")] 2581 extern "system" { 2582 fn glGetMaterialiv(face: u32, pname: u32, params: *mut i32); 2583 } 2584 ::std::mem::transmute(glGetMaterialiv(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2585 } 2586 #[cfg(not(windows))] 2587 unimplemented!("Unsupported target OS"); 2588 } 2589 #[inline] 2590 pub unsafe fn glGetPixelMapfv(map: u32, values: *mut f32) { 2591 #[cfg(windows)] 2592 { 2593 #[link(name = "windows")] 2594 extern "system" { 2595 fn glGetPixelMapfv(map: u32, values: *mut f32); 2596 } 2597 ::std::mem::transmute(glGetPixelMapfv(::std::mem::transmute(map), ::std::mem::transmute(values))) 2598 } 2599 #[cfg(not(windows))] 2600 unimplemented!("Unsupported target OS"); 2601 } 2602 #[inline] 2603 pub unsafe fn glGetPixelMapuiv(map: u32, values: *mut u32) { 2604 #[cfg(windows)] 2605 { 2606 #[link(name = "windows")] 2607 extern "system" { 2608 fn glGetPixelMapuiv(map: u32, values: *mut u32); 2609 } 2610 ::std::mem::transmute(glGetPixelMapuiv(::std::mem::transmute(map), ::std::mem::transmute(values))) 2611 } 2612 #[cfg(not(windows))] 2613 unimplemented!("Unsupported target OS"); 2614 } 2615 #[inline] 2616 pub unsafe fn glGetPixelMapusv(map: u32, values: *mut u16) { 2617 #[cfg(windows)] 2618 { 2619 #[link(name = "windows")] 2620 extern "system" { 2621 fn glGetPixelMapusv(map: u32, values: *mut u16); 2622 } 2623 ::std::mem::transmute(glGetPixelMapusv(::std::mem::transmute(map), ::std::mem::transmute(values))) 2624 } 2625 #[cfg(not(windows))] 2626 unimplemented!("Unsupported target OS"); 2627 } 2628 #[inline] 2629 pub unsafe fn glGetPointerv(pname: u32, params: *mut *mut ::std::ffi::c_void) { 2630 #[cfg(windows)] 2631 { 2632 #[link(name = "windows")] 2633 extern "system" { 2634 fn glGetPointerv(pname: u32, params: *mut *mut ::std::ffi::c_void); 2635 } 2636 ::std::mem::transmute(glGetPointerv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 2637 } 2638 #[cfg(not(windows))] 2639 unimplemented!("Unsupported target OS"); 2640 } 2641 #[inline] 2642 pub unsafe fn glGetPolygonStipple(mask: *mut u8) { 2643 #[cfg(windows)] 2644 { 2645 #[link(name = "windows")] 2646 extern "system" { 2647 fn glGetPolygonStipple(mask: *mut u8); 2648 } 2649 ::std::mem::transmute(glGetPolygonStipple(::std::mem::transmute(mask))) 2650 } 2651 #[cfg(not(windows))] 2652 unimplemented!("Unsupported target OS"); 2653 } 2654 #[inline] 2655 pub unsafe fn glGetString(name: u32) -> *mut u8 { 2656 #[cfg(windows)] 2657 { 2658 #[link(name = "windows")] 2659 extern "system" { 2660 fn glGetString(name: u32) -> *mut u8; 2661 } 2662 ::std::mem::transmute(glGetString(::std::mem::transmute(name))) 2663 } 2664 #[cfg(not(windows))] 2665 unimplemented!("Unsupported target OS"); 2666 } 2667 #[inline] 2668 pub unsafe fn glGetTexEnvfv(target: u32, pname: u32, params: *mut f32) { 2669 #[cfg(windows)] 2670 { 2671 #[link(name = "windows")] 2672 extern "system" { 2673 fn glGetTexEnvfv(target: u32, pname: u32, params: *mut f32); 2674 } 2675 ::std::mem::transmute(glGetTexEnvfv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2676 } 2677 #[cfg(not(windows))] 2678 unimplemented!("Unsupported target OS"); 2679 } 2680 #[inline] 2681 pub unsafe fn glGetTexEnviv(target: u32, pname: u32, params: *mut i32) { 2682 #[cfg(windows)] 2683 { 2684 #[link(name = "windows")] 2685 extern "system" { 2686 fn glGetTexEnviv(target: u32, pname: u32, params: *mut i32); 2687 } 2688 ::std::mem::transmute(glGetTexEnviv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2689 } 2690 #[cfg(not(windows))] 2691 unimplemented!("Unsupported target OS"); 2692 } 2693 #[inline] 2694 pub unsafe fn glGetTexGendv(coord: u32, pname: u32, params: *mut f64) { 2695 #[cfg(windows)] 2696 { 2697 #[link(name = "windows")] 2698 extern "system" { 2699 fn glGetTexGendv(coord: u32, pname: u32, params: *mut f64); 2700 } 2701 ::std::mem::transmute(glGetTexGendv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2702 } 2703 #[cfg(not(windows))] 2704 unimplemented!("Unsupported target OS"); 2705 } 2706 #[inline] 2707 pub unsafe fn glGetTexGenfv(coord: u32, pname: u32, params: *mut f32) { 2708 #[cfg(windows)] 2709 { 2710 #[link(name = "windows")] 2711 extern "system" { 2712 fn glGetTexGenfv(coord: u32, pname: u32, params: *mut f32); 2713 } 2714 ::std::mem::transmute(glGetTexGenfv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2715 } 2716 #[cfg(not(windows))] 2717 unimplemented!("Unsupported target OS"); 2718 } 2719 #[inline] 2720 pub unsafe fn glGetTexGeniv(coord: u32, pname: u32, params: *mut i32) { 2721 #[cfg(windows)] 2722 { 2723 #[link(name = "windows")] 2724 extern "system" { 2725 fn glGetTexGeniv(coord: u32, pname: u32, params: *mut i32); 2726 } 2727 ::std::mem::transmute(glGetTexGeniv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2728 } 2729 #[cfg(not(windows))] 2730 unimplemented!("Unsupported target OS"); 2731 } 2732 #[inline] 2733 pub unsafe fn glGetTexImage(target: u32, level: i32, format: u32, r#type: u32, pixels: *mut ::std::ffi::c_void) { 2734 #[cfg(windows)] 2735 { 2736 #[link(name = "windows")] 2737 extern "system" { 2738 fn glGetTexImage(target: u32, level: i32, format: u32, r#type: u32, pixels: *mut ::std::ffi::c_void); 2739 } 2740 ::std::mem::transmute(glGetTexImage(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 2741 } 2742 #[cfg(not(windows))] 2743 unimplemented!("Unsupported target OS"); 2744 } 2745 #[inline] 2746 pub unsafe fn glGetTexLevelParameterfv(target: u32, level: i32, pname: u32, params: *mut f32) { 2747 #[cfg(windows)] 2748 { 2749 #[link(name = "windows")] 2750 extern "system" { 2751 fn glGetTexLevelParameterfv(target: u32, level: i32, pname: u32, params: *mut f32); 2752 } 2753 ::std::mem::transmute(glGetTexLevelParameterfv(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2754 } 2755 #[cfg(not(windows))] 2756 unimplemented!("Unsupported target OS"); 2757 } 2758 #[inline] 2759 pub unsafe fn glGetTexLevelParameteriv(target: u32, level: i32, pname: u32, params: *mut i32) { 2760 #[cfg(windows)] 2761 { 2762 #[link(name = "windows")] 2763 extern "system" { 2764 fn glGetTexLevelParameteriv(target: u32, level: i32, pname: u32, params: *mut i32); 2765 } 2766 ::std::mem::transmute(glGetTexLevelParameteriv(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2767 } 2768 #[cfg(not(windows))] 2769 unimplemented!("Unsupported target OS"); 2770 } 2771 #[inline] 2772 pub unsafe fn glGetTexParameterfv(target: u32, pname: u32, params: *mut f32) { 2773 #[cfg(windows)] 2774 { 2775 #[link(name = "windows")] 2776 extern "system" { 2777 fn glGetTexParameterfv(target: u32, pname: u32, params: *mut f32); 2778 } 2779 ::std::mem::transmute(glGetTexParameterfv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2780 } 2781 #[cfg(not(windows))] 2782 unimplemented!("Unsupported target OS"); 2783 } 2784 #[inline] 2785 pub unsafe fn glGetTexParameteriv(target: u32, pname: u32, params: *mut i32) { 2786 #[cfg(windows)] 2787 { 2788 #[link(name = "windows")] 2789 extern "system" { 2790 fn glGetTexParameteriv(target: u32, pname: u32, params: *mut i32); 2791 } 2792 ::std::mem::transmute(glGetTexParameteriv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 2793 } 2794 #[cfg(not(windows))] 2795 unimplemented!("Unsupported target OS"); 2796 } 2797 #[inline] 2798 pub unsafe fn glHint(target: u32, mode: u32) { 2799 #[cfg(windows)] 2800 { 2801 #[link(name = "windows")] 2802 extern "system" { 2803 fn glHint(target: u32, mode: u32); 2804 } 2805 ::std::mem::transmute(glHint(::std::mem::transmute(target), ::std::mem::transmute(mode))) 2806 } 2807 #[cfg(not(windows))] 2808 unimplemented!("Unsupported target OS"); 2809 } 2810 #[inline] 2811 pub unsafe fn glIndexMask(mask: u32) { 2812 #[cfg(windows)] 2813 { 2814 #[link(name = "windows")] 2815 extern "system" { 2816 fn glIndexMask(mask: u32); 2817 } 2818 ::std::mem::transmute(glIndexMask(::std::mem::transmute(mask))) 2819 } 2820 #[cfg(not(windows))] 2821 unimplemented!("Unsupported target OS"); 2822 } 2823 #[inline] 2824 pub unsafe fn glIndexPointer(r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 2825 #[cfg(windows)] 2826 { 2827 #[link(name = "windows")] 2828 extern "system" { 2829 fn glIndexPointer(r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void); 2830 } 2831 ::std::mem::transmute(glIndexPointer(::std::mem::transmute(r#type), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 2832 } 2833 #[cfg(not(windows))] 2834 unimplemented!("Unsupported target OS"); 2835 } 2836 #[inline] 2837 pub unsafe fn glIndexd(c: f64) { 2838 #[cfg(windows)] 2839 { 2840 #[link(name = "windows")] 2841 extern "system" { 2842 fn glIndexd(c: f64); 2843 } 2844 ::std::mem::transmute(glIndexd(::std::mem::transmute(c))) 2845 } 2846 #[cfg(not(windows))] 2847 unimplemented!("Unsupported target OS"); 2848 } 2849 #[inline] 2850 pub unsafe fn glIndexdv(c: *const f64) { 2851 #[cfg(windows)] 2852 { 2853 #[link(name = "windows")] 2854 extern "system" { 2855 fn glIndexdv(c: *const f64); 2856 } 2857 ::std::mem::transmute(glIndexdv(::std::mem::transmute(c))) 2858 } 2859 #[cfg(not(windows))] 2860 unimplemented!("Unsupported target OS"); 2861 } 2862 #[inline] 2863 pub unsafe fn glIndexf(c: f32) { 2864 #[cfg(windows)] 2865 { 2866 #[link(name = "windows")] 2867 extern "system" { 2868 fn glIndexf(c: f32); 2869 } 2870 ::std::mem::transmute(glIndexf(::std::mem::transmute(c))) 2871 } 2872 #[cfg(not(windows))] 2873 unimplemented!("Unsupported target OS"); 2874 } 2875 #[inline] 2876 pub unsafe fn glIndexfv(c: *const f32) { 2877 #[cfg(windows)] 2878 { 2879 #[link(name = "windows")] 2880 extern "system" { 2881 fn glIndexfv(c: *const f32); 2882 } 2883 ::std::mem::transmute(glIndexfv(::std::mem::transmute(c))) 2884 } 2885 #[cfg(not(windows))] 2886 unimplemented!("Unsupported target OS"); 2887 } 2888 #[inline] 2889 pub unsafe fn glIndexi(c: i32) { 2890 #[cfg(windows)] 2891 { 2892 #[link(name = "windows")] 2893 extern "system" { 2894 fn glIndexi(c: i32); 2895 } 2896 ::std::mem::transmute(glIndexi(::std::mem::transmute(c))) 2897 } 2898 #[cfg(not(windows))] 2899 unimplemented!("Unsupported target OS"); 2900 } 2901 #[inline] 2902 pub unsafe fn glIndexiv(c: *const i32) { 2903 #[cfg(windows)] 2904 { 2905 #[link(name = "windows")] 2906 extern "system" { 2907 fn glIndexiv(c: *const i32); 2908 } 2909 ::std::mem::transmute(glIndexiv(::std::mem::transmute(c))) 2910 } 2911 #[cfg(not(windows))] 2912 unimplemented!("Unsupported target OS"); 2913 } 2914 #[inline] 2915 pub unsafe fn glIndexs(c: i16) { 2916 #[cfg(windows)] 2917 { 2918 #[link(name = "windows")] 2919 extern "system" { 2920 fn glIndexs(c: i16); 2921 } 2922 ::std::mem::transmute(glIndexs(::std::mem::transmute(c))) 2923 } 2924 #[cfg(not(windows))] 2925 unimplemented!("Unsupported target OS"); 2926 } 2927 #[inline] 2928 pub unsafe fn glIndexsv(c: *const i16) { 2929 #[cfg(windows)] 2930 { 2931 #[link(name = "windows")] 2932 extern "system" { 2933 fn glIndexsv(c: *const i16); 2934 } 2935 ::std::mem::transmute(glIndexsv(::std::mem::transmute(c))) 2936 } 2937 #[cfg(not(windows))] 2938 unimplemented!("Unsupported target OS"); 2939 } 2940 #[inline] 2941 pub unsafe fn glIndexub(c: u8) { 2942 #[cfg(windows)] 2943 { 2944 #[link(name = "windows")] 2945 extern "system" { 2946 fn glIndexub(c: u8); 2947 } 2948 ::std::mem::transmute(glIndexub(::std::mem::transmute(c))) 2949 } 2950 #[cfg(not(windows))] 2951 unimplemented!("Unsupported target OS"); 2952 } 2953 #[inline] 2954 pub unsafe fn glIndexubv(c: *const u8) { 2955 #[cfg(windows)] 2956 { 2957 #[link(name = "windows")] 2958 extern "system" { 2959 fn glIndexubv(c: *const u8); 2960 } 2961 ::std::mem::transmute(glIndexubv(::std::mem::transmute(c))) 2962 } 2963 #[cfg(not(windows))] 2964 unimplemented!("Unsupported target OS"); 2965 } 2966 #[inline] 2967 pub unsafe fn glInitNames() { 2968 #[cfg(windows)] 2969 { 2970 #[link(name = "windows")] 2971 extern "system" { 2972 fn glInitNames(); 2973 } 2974 ::std::mem::transmute(glInitNames()) 2975 } 2976 #[cfg(not(windows))] 2977 unimplemented!("Unsupported target OS"); 2978 } 2979 #[inline] 2980 pub unsafe fn glInterleavedArrays(format: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 2981 #[cfg(windows)] 2982 { 2983 #[link(name = "windows")] 2984 extern "system" { 2985 fn glInterleavedArrays(format: u32, stride: i32, pointer: *const ::std::ffi::c_void); 2986 } 2987 ::std::mem::transmute(glInterleavedArrays(::std::mem::transmute(format), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 2988 } 2989 #[cfg(not(windows))] 2990 unimplemented!("Unsupported target OS"); 2991 } 2992 #[inline] 2993 pub unsafe fn glIsEnabled(cap: u32) -> u8 { 2994 #[cfg(windows)] 2995 { 2996 #[link(name = "windows")] 2997 extern "system" { 2998 fn glIsEnabled(cap: u32) -> u8; 2999 } 3000 ::std::mem::transmute(glIsEnabled(::std::mem::transmute(cap))) 3001 } 3002 #[cfg(not(windows))] 3003 unimplemented!("Unsupported target OS"); 3004 } 3005 #[inline] 3006 pub unsafe fn glIsList(list: u32) -> u8 { 3007 #[cfg(windows)] 3008 { 3009 #[link(name = "windows")] 3010 extern "system" { 3011 fn glIsList(list: u32) -> u8; 3012 } 3013 ::std::mem::transmute(glIsList(::std::mem::transmute(list))) 3014 } 3015 #[cfg(not(windows))] 3016 unimplemented!("Unsupported target OS"); 3017 } 3018 #[inline] 3019 pub unsafe fn glIsTexture(texture: u32) -> u8 { 3020 #[cfg(windows)] 3021 { 3022 #[link(name = "windows")] 3023 extern "system" { 3024 fn glIsTexture(texture: u32) -> u8; 3025 } 3026 ::std::mem::transmute(glIsTexture(::std::mem::transmute(texture))) 3027 } 3028 #[cfg(not(windows))] 3029 unimplemented!("Unsupported target OS"); 3030 } 3031 #[inline] 3032 pub unsafe fn glLightModelf(pname: u32, param1: f32) { 3033 #[cfg(windows)] 3034 { 3035 #[link(name = "windows")] 3036 extern "system" { 3037 fn glLightModelf(pname: u32, param1: f32); 3038 } 3039 ::std::mem::transmute(glLightModelf(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3040 } 3041 #[cfg(not(windows))] 3042 unimplemented!("Unsupported target OS"); 3043 } 3044 #[inline] 3045 pub unsafe fn glLightModelfv(pname: u32, params: *const f32) { 3046 #[cfg(windows)] 3047 { 3048 #[link(name = "windows")] 3049 extern "system" { 3050 fn glLightModelfv(pname: u32, params: *const f32); 3051 } 3052 ::std::mem::transmute(glLightModelfv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 3053 } 3054 #[cfg(not(windows))] 3055 unimplemented!("Unsupported target OS"); 3056 } 3057 #[inline] 3058 pub unsafe fn glLightModeli(pname: u32, param1: i32) { 3059 #[cfg(windows)] 3060 { 3061 #[link(name = "windows")] 3062 extern "system" { 3063 fn glLightModeli(pname: u32, param1: i32); 3064 } 3065 ::std::mem::transmute(glLightModeli(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3066 } 3067 #[cfg(not(windows))] 3068 unimplemented!("Unsupported target OS"); 3069 } 3070 #[inline] 3071 pub unsafe fn glLightModeliv(pname: u32, params: *const i32) { 3072 #[cfg(windows)] 3073 { 3074 #[link(name = "windows")] 3075 extern "system" { 3076 fn glLightModeliv(pname: u32, params: *const i32); 3077 } 3078 ::std::mem::transmute(glLightModeliv(::std::mem::transmute(pname), ::std::mem::transmute(params))) 3079 } 3080 #[cfg(not(windows))] 3081 unimplemented!("Unsupported target OS"); 3082 } 3083 #[inline] 3084 pub unsafe fn glLightf(light: u32, pname: u32, param2: f32) { 3085 #[cfg(windows)] 3086 { 3087 #[link(name = "windows")] 3088 extern "system" { 3089 fn glLightf(light: u32, pname: u32, param2: f32); 3090 } 3091 ::std::mem::transmute(glLightf(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 3092 } 3093 #[cfg(not(windows))] 3094 unimplemented!("Unsupported target OS"); 3095 } 3096 #[inline] 3097 pub unsafe fn glLightfv(light: u32, pname: u32, params: *const f32) { 3098 #[cfg(windows)] 3099 { 3100 #[link(name = "windows")] 3101 extern "system" { 3102 fn glLightfv(light: u32, pname: u32, params: *const f32); 3103 } 3104 ::std::mem::transmute(glLightfv(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 3105 } 3106 #[cfg(not(windows))] 3107 unimplemented!("Unsupported target OS"); 3108 } 3109 #[inline] 3110 pub unsafe fn glLighti(light: u32, pname: u32, param2: i32) { 3111 #[cfg(windows)] 3112 { 3113 #[link(name = "windows")] 3114 extern "system" { 3115 fn glLighti(light: u32, pname: u32, param2: i32); 3116 } 3117 ::std::mem::transmute(glLighti(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 3118 } 3119 #[cfg(not(windows))] 3120 unimplemented!("Unsupported target OS"); 3121 } 3122 #[inline] 3123 pub unsafe fn glLightiv(light: u32, pname: u32, params: *const i32) { 3124 #[cfg(windows)] 3125 { 3126 #[link(name = "windows")] 3127 extern "system" { 3128 fn glLightiv(light: u32, pname: u32, params: *const i32); 3129 } 3130 ::std::mem::transmute(glLightiv(::std::mem::transmute(light), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 3131 } 3132 #[cfg(not(windows))] 3133 unimplemented!("Unsupported target OS"); 3134 } 3135 #[inline] 3136 pub unsafe fn glLineStipple(factor: i32, pattern: u16) { 3137 #[cfg(windows)] 3138 { 3139 #[link(name = "windows")] 3140 extern "system" { 3141 fn glLineStipple(factor: i32, pattern: u16); 3142 } 3143 ::std::mem::transmute(glLineStipple(::std::mem::transmute(factor), ::std::mem::transmute(pattern))) 3144 } 3145 #[cfg(not(windows))] 3146 unimplemented!("Unsupported target OS"); 3147 } 3148 #[inline] 3149 pub unsafe fn glLineWidth(width: f32) { 3150 #[cfg(windows)] 3151 { 3152 #[link(name = "windows")] 3153 extern "system" { 3154 fn glLineWidth(width: f32); 3155 } 3156 ::std::mem::transmute(glLineWidth(::std::mem::transmute(width))) 3157 } 3158 #[cfg(not(windows))] 3159 unimplemented!("Unsupported target OS"); 3160 } 3161 #[inline] 3162 pub unsafe fn glListBase(base: u32) { 3163 #[cfg(windows)] 3164 { 3165 #[link(name = "windows")] 3166 extern "system" { 3167 fn glListBase(base: u32); 3168 } 3169 ::std::mem::transmute(glListBase(::std::mem::transmute(base))) 3170 } 3171 #[cfg(not(windows))] 3172 unimplemented!("Unsupported target OS"); 3173 } 3174 #[inline] 3175 pub unsafe fn glLoadIdentity() { 3176 #[cfg(windows)] 3177 { 3178 #[link(name = "windows")] 3179 extern "system" { 3180 fn glLoadIdentity(); 3181 } 3182 ::std::mem::transmute(glLoadIdentity()) 3183 } 3184 #[cfg(not(windows))] 3185 unimplemented!("Unsupported target OS"); 3186 } 3187 #[inline] 3188 pub unsafe fn glLoadMatrixd(m: *const f64) { 3189 #[cfg(windows)] 3190 { 3191 #[link(name = "windows")] 3192 extern "system" { 3193 fn glLoadMatrixd(m: *const f64); 3194 } 3195 ::std::mem::transmute(glLoadMatrixd(::std::mem::transmute(m))) 3196 } 3197 #[cfg(not(windows))] 3198 unimplemented!("Unsupported target OS"); 3199 } 3200 #[inline] 3201 pub unsafe fn glLoadMatrixf(m: *const f32) { 3202 #[cfg(windows)] 3203 { 3204 #[link(name = "windows")] 3205 extern "system" { 3206 fn glLoadMatrixf(m: *const f32); 3207 } 3208 ::std::mem::transmute(glLoadMatrixf(::std::mem::transmute(m))) 3209 } 3210 #[cfg(not(windows))] 3211 unimplemented!("Unsupported target OS"); 3212 } 3213 #[inline] 3214 pub unsafe fn glLoadName(name: u32) { 3215 #[cfg(windows)] 3216 { 3217 #[link(name = "windows")] 3218 extern "system" { 3219 fn glLoadName(name: u32); 3220 } 3221 ::std::mem::transmute(glLoadName(::std::mem::transmute(name))) 3222 } 3223 #[cfg(not(windows))] 3224 unimplemented!("Unsupported target OS"); 3225 } 3226 #[inline] 3227 pub unsafe fn glLogicOp(opcode: u32) { 3228 #[cfg(windows)] 3229 { 3230 #[link(name = "windows")] 3231 extern "system" { 3232 fn glLogicOp(opcode: u32); 3233 } 3234 ::std::mem::transmute(glLogicOp(::std::mem::transmute(opcode))) 3235 } 3236 #[cfg(not(windows))] 3237 unimplemented!("Unsupported target OS"); 3238 } 3239 #[inline] 3240 pub unsafe fn glMap1d(target: u32, u1: f64, u2: f64, stride: i32, order: i32, points: *const f64) { 3241 #[cfg(windows)] 3242 { 3243 #[link(name = "windows")] 3244 extern "system" { 3245 fn glMap1d(target: u32, u1: f64, u2: f64, stride: i32, order: i32, points: *const f64); 3246 } 3247 ::std::mem::transmute(glMap1d(::std::mem::transmute(target), ::std::mem::transmute(u1), ::std::mem::transmute(u2), ::std::mem::transmute(stride), ::std::mem::transmute(order), ::std::mem::transmute(points))) 3248 } 3249 #[cfg(not(windows))] 3250 unimplemented!("Unsupported target OS"); 3251 } 3252 #[inline] 3253 pub unsafe fn glMap1f(target: u32, u1: f32, u2: f32, stride: i32, order: i32, points: *const f32) { 3254 #[cfg(windows)] 3255 { 3256 #[link(name = "windows")] 3257 extern "system" { 3258 fn glMap1f(target: u32, u1: f32, u2: f32, stride: i32, order: i32, points: *const f32); 3259 } 3260 ::std::mem::transmute(glMap1f(::std::mem::transmute(target), ::std::mem::transmute(u1), ::std::mem::transmute(u2), ::std::mem::transmute(stride), ::std::mem::transmute(order), ::std::mem::transmute(points))) 3261 } 3262 #[cfg(not(windows))] 3263 unimplemented!("Unsupported target OS"); 3264 } 3265 #[inline] 3266 pub unsafe fn glMap2d(target: u32, u1: f64, u2: f64, ustride: i32, uorder: i32, v1: f64, v2: f64, vstride: i32, vorder: i32, points: *const f64) { 3267 #[cfg(windows)] 3268 { 3269 #[link(name = "windows")] 3270 extern "system" { 3271 fn glMap2d(target: u32, u1: f64, u2: f64, ustride: i32, uorder: i32, v1: f64, v2: f64, vstride: i32, vorder: i32, points: *const f64); 3272 } 3273 ::std::mem::transmute(glMap2d( 3274 ::std::mem::transmute(target), 3275 ::std::mem::transmute(u1), 3276 ::std::mem::transmute(u2), 3277 ::std::mem::transmute(ustride), 3278 ::std::mem::transmute(uorder), 3279 ::std::mem::transmute(v1), 3280 ::std::mem::transmute(v2), 3281 ::std::mem::transmute(vstride), 3282 ::std::mem::transmute(vorder), 3283 ::std::mem::transmute(points), 3284 )) 3285 } 3286 #[cfg(not(windows))] 3287 unimplemented!("Unsupported target OS"); 3288 } 3289 #[inline] 3290 pub unsafe fn glMap2f(target: u32, u1: f32, u2: f32, ustride: i32, uorder: i32, v1: f32, v2: f32, vstride: i32, vorder: i32, points: *const f32) { 3291 #[cfg(windows)] 3292 { 3293 #[link(name = "windows")] 3294 extern "system" { 3295 fn glMap2f(target: u32, u1: f32, u2: f32, ustride: i32, uorder: i32, v1: f32, v2: f32, vstride: i32, vorder: i32, points: *const f32); 3296 } 3297 ::std::mem::transmute(glMap2f( 3298 ::std::mem::transmute(target), 3299 ::std::mem::transmute(u1), 3300 ::std::mem::transmute(u2), 3301 ::std::mem::transmute(ustride), 3302 ::std::mem::transmute(uorder), 3303 ::std::mem::transmute(v1), 3304 ::std::mem::transmute(v2), 3305 ::std::mem::transmute(vstride), 3306 ::std::mem::transmute(vorder), 3307 ::std::mem::transmute(points), 3308 )) 3309 } 3310 #[cfg(not(windows))] 3311 unimplemented!("Unsupported target OS"); 3312 } 3313 #[inline] 3314 pub unsafe fn glMapGrid1d(un: i32, u1: f64, u2: f64) { 3315 #[cfg(windows)] 3316 { 3317 #[link(name = "windows")] 3318 extern "system" { 3319 fn glMapGrid1d(un: i32, u1: f64, u2: f64); 3320 } 3321 ::std::mem::transmute(glMapGrid1d(::std::mem::transmute(un), ::std::mem::transmute(u1), ::std::mem::transmute(u2))) 3322 } 3323 #[cfg(not(windows))] 3324 unimplemented!("Unsupported target OS"); 3325 } 3326 #[inline] 3327 pub unsafe fn glMapGrid1f(un: i32, u1: f32, u2: f32) { 3328 #[cfg(windows)] 3329 { 3330 #[link(name = "windows")] 3331 extern "system" { 3332 fn glMapGrid1f(un: i32, u1: f32, u2: f32); 3333 } 3334 ::std::mem::transmute(glMapGrid1f(::std::mem::transmute(un), ::std::mem::transmute(u1), ::std::mem::transmute(u2))) 3335 } 3336 #[cfg(not(windows))] 3337 unimplemented!("Unsupported target OS"); 3338 } 3339 #[inline] 3340 pub unsafe fn glMapGrid2d(un: i32, u1: f64, u2: f64, vn: i32, v1: f64, v2: f64) { 3341 #[cfg(windows)] 3342 { 3343 #[link(name = "windows")] 3344 extern "system" { 3345 fn glMapGrid2d(un: i32, u1: f64, u2: f64, vn: i32, v1: f64, v2: f64); 3346 } 3347 ::std::mem::transmute(glMapGrid2d(::std::mem::transmute(un), ::std::mem::transmute(u1), ::std::mem::transmute(u2), ::std::mem::transmute(vn), ::std::mem::transmute(v1), ::std::mem::transmute(v2))) 3348 } 3349 #[cfg(not(windows))] 3350 unimplemented!("Unsupported target OS"); 3351 } 3352 #[inline] 3353 pub unsafe fn glMapGrid2f(un: i32, u1: f32, u2: f32, vn: i32, v1: f32, v2: f32) { 3354 #[cfg(windows)] 3355 { 3356 #[link(name = "windows")] 3357 extern "system" { 3358 fn glMapGrid2f(un: i32, u1: f32, u2: f32, vn: i32, v1: f32, v2: f32); 3359 } 3360 ::std::mem::transmute(glMapGrid2f(::std::mem::transmute(un), ::std::mem::transmute(u1), ::std::mem::transmute(u2), ::std::mem::transmute(vn), ::std::mem::transmute(v1), ::std::mem::transmute(v2))) 3361 } 3362 #[cfg(not(windows))] 3363 unimplemented!("Unsupported target OS"); 3364 } 3365 #[inline] 3366 pub unsafe fn glMaterialf(face: u32, pname: u32, param2: f32) { 3367 #[cfg(windows)] 3368 { 3369 #[link(name = "windows")] 3370 extern "system" { 3371 fn glMaterialf(face: u32, pname: u32, param2: f32); 3372 } 3373 ::std::mem::transmute(glMaterialf(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 3374 } 3375 #[cfg(not(windows))] 3376 unimplemented!("Unsupported target OS"); 3377 } 3378 #[inline] 3379 pub unsafe fn glMaterialfv(face: u32, pname: u32, params: *const f32) { 3380 #[cfg(windows)] 3381 { 3382 #[link(name = "windows")] 3383 extern "system" { 3384 fn glMaterialfv(face: u32, pname: u32, params: *const f32); 3385 } 3386 ::std::mem::transmute(glMaterialfv(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 3387 } 3388 #[cfg(not(windows))] 3389 unimplemented!("Unsupported target OS"); 3390 } 3391 #[inline] 3392 pub unsafe fn glMateriali(face: u32, pname: u32, param2: i32) { 3393 #[cfg(windows)] 3394 { 3395 #[link(name = "windows")] 3396 extern "system" { 3397 fn glMateriali(face: u32, pname: u32, param2: i32); 3398 } 3399 ::std::mem::transmute(glMateriali(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 3400 } 3401 #[cfg(not(windows))] 3402 unimplemented!("Unsupported target OS"); 3403 } 3404 #[inline] 3405 pub unsafe fn glMaterialiv(face: u32, pname: u32, params: *const i32) { 3406 #[cfg(windows)] 3407 { 3408 #[link(name = "windows")] 3409 extern "system" { 3410 fn glMaterialiv(face: u32, pname: u32, params: *const i32); 3411 } 3412 ::std::mem::transmute(glMaterialiv(::std::mem::transmute(face), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 3413 } 3414 #[cfg(not(windows))] 3415 unimplemented!("Unsupported target OS"); 3416 } 3417 #[inline] 3418 pub unsafe fn glMatrixMode(mode: u32) { 3419 #[cfg(windows)] 3420 { 3421 #[link(name = "windows")] 3422 extern "system" { 3423 fn glMatrixMode(mode: u32); 3424 } 3425 ::std::mem::transmute(glMatrixMode(::std::mem::transmute(mode))) 3426 } 3427 #[cfg(not(windows))] 3428 unimplemented!("Unsupported target OS"); 3429 } 3430 #[inline] 3431 pub unsafe fn glMultMatrixd(m: *const f64) { 3432 #[cfg(windows)] 3433 { 3434 #[link(name = "windows")] 3435 extern "system" { 3436 fn glMultMatrixd(m: *const f64); 3437 } 3438 ::std::mem::transmute(glMultMatrixd(::std::mem::transmute(m))) 3439 } 3440 #[cfg(not(windows))] 3441 unimplemented!("Unsupported target OS"); 3442 } 3443 #[inline] 3444 pub unsafe fn glMultMatrixf(m: *const f32) { 3445 #[cfg(windows)] 3446 { 3447 #[link(name = "windows")] 3448 extern "system" { 3449 fn glMultMatrixf(m: *const f32); 3450 } 3451 ::std::mem::transmute(glMultMatrixf(::std::mem::transmute(m))) 3452 } 3453 #[cfg(not(windows))] 3454 unimplemented!("Unsupported target OS"); 3455 } 3456 #[inline] 3457 pub unsafe fn glNewList(list: u32, mode: u32) { 3458 #[cfg(windows)] 3459 { 3460 #[link(name = "windows")] 3461 extern "system" { 3462 fn glNewList(list: u32, mode: u32); 3463 } 3464 ::std::mem::transmute(glNewList(::std::mem::transmute(list), ::std::mem::transmute(mode))) 3465 } 3466 #[cfg(not(windows))] 3467 unimplemented!("Unsupported target OS"); 3468 } 3469 #[inline] 3470 pub unsafe fn glNormal3b(nx: i8, ny: i8, nz: i8) { 3471 #[cfg(windows)] 3472 { 3473 #[link(name = "windows")] 3474 extern "system" { 3475 fn glNormal3b(nx: i8, ny: i8, nz: i8); 3476 } 3477 ::std::mem::transmute(glNormal3b(::std::mem::transmute(nx), ::std::mem::transmute(ny), ::std::mem::transmute(nz))) 3478 } 3479 #[cfg(not(windows))] 3480 unimplemented!("Unsupported target OS"); 3481 } 3482 #[inline] 3483 pub unsafe fn glNormal3bv(v: *const i8) { 3484 #[cfg(windows)] 3485 { 3486 #[link(name = "windows")] 3487 extern "system" { 3488 fn glNormal3bv(v: *const i8); 3489 } 3490 ::std::mem::transmute(glNormal3bv(::std::mem::transmute(v))) 3491 } 3492 #[cfg(not(windows))] 3493 unimplemented!("Unsupported target OS"); 3494 } 3495 #[inline] 3496 pub unsafe fn glNormal3d(nx: f64, ny: f64, nz: f64) { 3497 #[cfg(windows)] 3498 { 3499 #[link(name = "windows")] 3500 extern "system" { 3501 fn glNormal3d(nx: f64, ny: f64, nz: f64); 3502 } 3503 ::std::mem::transmute(glNormal3d(::std::mem::transmute(nx), ::std::mem::transmute(ny), ::std::mem::transmute(nz))) 3504 } 3505 #[cfg(not(windows))] 3506 unimplemented!("Unsupported target OS"); 3507 } 3508 #[inline] 3509 pub unsafe fn glNormal3dv(v: *const f64) { 3510 #[cfg(windows)] 3511 { 3512 #[link(name = "windows")] 3513 extern "system" { 3514 fn glNormal3dv(v: *const f64); 3515 } 3516 ::std::mem::transmute(glNormal3dv(::std::mem::transmute(v))) 3517 } 3518 #[cfg(not(windows))] 3519 unimplemented!("Unsupported target OS"); 3520 } 3521 #[inline] 3522 pub unsafe fn glNormal3f(nx: f32, ny: f32, nz: f32) { 3523 #[cfg(windows)] 3524 { 3525 #[link(name = "windows")] 3526 extern "system" { 3527 fn glNormal3f(nx: f32, ny: f32, nz: f32); 3528 } 3529 ::std::mem::transmute(glNormal3f(::std::mem::transmute(nx), ::std::mem::transmute(ny), ::std::mem::transmute(nz))) 3530 } 3531 #[cfg(not(windows))] 3532 unimplemented!("Unsupported target OS"); 3533 } 3534 #[inline] 3535 pub unsafe fn glNormal3fv(v: *const f32) { 3536 #[cfg(windows)] 3537 { 3538 #[link(name = "windows")] 3539 extern "system" { 3540 fn glNormal3fv(v: *const f32); 3541 } 3542 ::std::mem::transmute(glNormal3fv(::std::mem::transmute(v))) 3543 } 3544 #[cfg(not(windows))] 3545 unimplemented!("Unsupported target OS"); 3546 } 3547 #[inline] 3548 pub unsafe fn glNormal3i(nx: i32, ny: i32, nz: i32) { 3549 #[cfg(windows)] 3550 { 3551 #[link(name = "windows")] 3552 extern "system" { 3553 fn glNormal3i(nx: i32, ny: i32, nz: i32); 3554 } 3555 ::std::mem::transmute(glNormal3i(::std::mem::transmute(nx), ::std::mem::transmute(ny), ::std::mem::transmute(nz))) 3556 } 3557 #[cfg(not(windows))] 3558 unimplemented!("Unsupported target OS"); 3559 } 3560 #[inline] 3561 pub unsafe fn glNormal3iv(v: *const i32) { 3562 #[cfg(windows)] 3563 { 3564 #[link(name = "windows")] 3565 extern "system" { 3566 fn glNormal3iv(v: *const i32); 3567 } 3568 ::std::mem::transmute(glNormal3iv(::std::mem::transmute(v))) 3569 } 3570 #[cfg(not(windows))] 3571 unimplemented!("Unsupported target OS"); 3572 } 3573 #[inline] 3574 pub unsafe fn glNormal3s(nx: i16, ny: i16, nz: i16) { 3575 #[cfg(windows)] 3576 { 3577 #[link(name = "windows")] 3578 extern "system" { 3579 fn glNormal3s(nx: i16, ny: i16, nz: i16); 3580 } 3581 ::std::mem::transmute(glNormal3s(::std::mem::transmute(nx), ::std::mem::transmute(ny), ::std::mem::transmute(nz))) 3582 } 3583 #[cfg(not(windows))] 3584 unimplemented!("Unsupported target OS"); 3585 } 3586 #[inline] 3587 pub unsafe fn glNormal3sv(v: *const i16) { 3588 #[cfg(windows)] 3589 { 3590 #[link(name = "windows")] 3591 extern "system" { 3592 fn glNormal3sv(v: *const i16); 3593 } 3594 ::std::mem::transmute(glNormal3sv(::std::mem::transmute(v))) 3595 } 3596 #[cfg(not(windows))] 3597 unimplemented!("Unsupported target OS"); 3598 } 3599 #[inline] 3600 pub unsafe fn glNormalPointer(r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 3601 #[cfg(windows)] 3602 { 3603 #[link(name = "windows")] 3604 extern "system" { 3605 fn glNormalPointer(r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void); 3606 } 3607 ::std::mem::transmute(glNormalPointer(::std::mem::transmute(r#type), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 3608 } 3609 #[cfg(not(windows))] 3610 unimplemented!("Unsupported target OS"); 3611 } 3612 #[inline] 3613 pub unsafe fn glOrtho(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64) { 3614 #[cfg(windows)] 3615 { 3616 #[link(name = "windows")] 3617 extern "system" { 3618 fn glOrtho(left: f64, right: f64, bottom: f64, top: f64, znear: f64, zfar: f64); 3619 } 3620 ::std::mem::transmute(glOrtho(::std::mem::transmute(left), ::std::mem::transmute(right), ::std::mem::transmute(bottom), ::std::mem::transmute(top), ::std::mem::transmute(znear), ::std::mem::transmute(zfar))) 3621 } 3622 #[cfg(not(windows))] 3623 unimplemented!("Unsupported target OS"); 3624 } 3625 #[inline] 3626 pub unsafe fn glPassThrough(token: f32) { 3627 #[cfg(windows)] 3628 { 3629 #[link(name = "windows")] 3630 extern "system" { 3631 fn glPassThrough(token: f32); 3632 } 3633 ::std::mem::transmute(glPassThrough(::std::mem::transmute(token))) 3634 } 3635 #[cfg(not(windows))] 3636 unimplemented!("Unsupported target OS"); 3637 } 3638 #[inline] 3639 pub unsafe fn glPixelMapfv(map: u32, mapsize: i32, values: *const f32) { 3640 #[cfg(windows)] 3641 { 3642 #[link(name = "windows")] 3643 extern "system" { 3644 fn glPixelMapfv(map: u32, mapsize: i32, values: *const f32); 3645 } 3646 ::std::mem::transmute(glPixelMapfv(::std::mem::transmute(map), ::std::mem::transmute(mapsize), ::std::mem::transmute(values))) 3647 } 3648 #[cfg(not(windows))] 3649 unimplemented!("Unsupported target OS"); 3650 } 3651 #[inline] 3652 pub unsafe fn glPixelMapuiv(map: u32, mapsize: i32, values: *const u32) { 3653 #[cfg(windows)] 3654 { 3655 #[link(name = "windows")] 3656 extern "system" { 3657 fn glPixelMapuiv(map: u32, mapsize: i32, values: *const u32); 3658 } 3659 ::std::mem::transmute(glPixelMapuiv(::std::mem::transmute(map), ::std::mem::transmute(mapsize), ::std::mem::transmute(values))) 3660 } 3661 #[cfg(not(windows))] 3662 unimplemented!("Unsupported target OS"); 3663 } 3664 #[inline] 3665 pub unsafe fn glPixelMapusv(map: u32, mapsize: i32, values: *const u16) { 3666 #[cfg(windows)] 3667 { 3668 #[link(name = "windows")] 3669 extern "system" { 3670 fn glPixelMapusv(map: u32, mapsize: i32, values: *const u16); 3671 } 3672 ::std::mem::transmute(glPixelMapusv(::std::mem::transmute(map), ::std::mem::transmute(mapsize), ::std::mem::transmute(values))) 3673 } 3674 #[cfg(not(windows))] 3675 unimplemented!("Unsupported target OS"); 3676 } 3677 #[inline] 3678 pub unsafe fn glPixelStoref(pname: u32, param1: f32) { 3679 #[cfg(windows)] 3680 { 3681 #[link(name = "windows")] 3682 extern "system" { 3683 fn glPixelStoref(pname: u32, param1: f32); 3684 } 3685 ::std::mem::transmute(glPixelStoref(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3686 } 3687 #[cfg(not(windows))] 3688 unimplemented!("Unsupported target OS"); 3689 } 3690 #[inline] 3691 pub unsafe fn glPixelStorei(pname: u32, param1: i32) { 3692 #[cfg(windows)] 3693 { 3694 #[link(name = "windows")] 3695 extern "system" { 3696 fn glPixelStorei(pname: u32, param1: i32); 3697 } 3698 ::std::mem::transmute(glPixelStorei(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3699 } 3700 #[cfg(not(windows))] 3701 unimplemented!("Unsupported target OS"); 3702 } 3703 #[inline] 3704 pub unsafe fn glPixelTransferf(pname: u32, param1: f32) { 3705 #[cfg(windows)] 3706 { 3707 #[link(name = "windows")] 3708 extern "system" { 3709 fn glPixelTransferf(pname: u32, param1: f32); 3710 } 3711 ::std::mem::transmute(glPixelTransferf(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3712 } 3713 #[cfg(not(windows))] 3714 unimplemented!("Unsupported target OS"); 3715 } 3716 #[inline] 3717 pub unsafe fn glPixelTransferi(pname: u32, param1: i32) { 3718 #[cfg(windows)] 3719 { 3720 #[link(name = "windows")] 3721 extern "system" { 3722 fn glPixelTransferi(pname: u32, param1: i32); 3723 } 3724 ::std::mem::transmute(glPixelTransferi(::std::mem::transmute(pname), ::std::mem::transmute(param1))) 3725 } 3726 #[cfg(not(windows))] 3727 unimplemented!("Unsupported target OS"); 3728 } 3729 #[inline] 3730 pub unsafe fn glPixelZoom(xfactor: f32, yfactor: f32) { 3731 #[cfg(windows)] 3732 { 3733 #[link(name = "windows")] 3734 extern "system" { 3735 fn glPixelZoom(xfactor: f32, yfactor: f32); 3736 } 3737 ::std::mem::transmute(glPixelZoom(::std::mem::transmute(xfactor), ::std::mem::transmute(yfactor))) 3738 } 3739 #[cfg(not(windows))] 3740 unimplemented!("Unsupported target OS"); 3741 } 3742 #[inline] 3743 pub unsafe fn glPointSize(size: f32) { 3744 #[cfg(windows)] 3745 { 3746 #[link(name = "windows")] 3747 extern "system" { 3748 fn glPointSize(size: f32); 3749 } 3750 ::std::mem::transmute(glPointSize(::std::mem::transmute(size))) 3751 } 3752 #[cfg(not(windows))] 3753 unimplemented!("Unsupported target OS"); 3754 } 3755 #[inline] 3756 pub unsafe fn glPolygonMode(face: u32, mode: u32) { 3757 #[cfg(windows)] 3758 { 3759 #[link(name = "windows")] 3760 extern "system" { 3761 fn glPolygonMode(face: u32, mode: u32); 3762 } 3763 ::std::mem::transmute(glPolygonMode(::std::mem::transmute(face), ::std::mem::transmute(mode))) 3764 } 3765 #[cfg(not(windows))] 3766 unimplemented!("Unsupported target OS"); 3767 } 3768 #[inline] 3769 pub unsafe fn glPolygonOffset(factor: f32, units: f32) { 3770 #[cfg(windows)] 3771 { 3772 #[link(name = "windows")] 3773 extern "system" { 3774 fn glPolygonOffset(factor: f32, units: f32); 3775 } 3776 ::std::mem::transmute(glPolygonOffset(::std::mem::transmute(factor), ::std::mem::transmute(units))) 3777 } 3778 #[cfg(not(windows))] 3779 unimplemented!("Unsupported target OS"); 3780 } 3781 #[inline] 3782 pub unsafe fn glPolygonStipple(mask: *const u8) { 3783 #[cfg(windows)] 3784 { 3785 #[link(name = "windows")] 3786 extern "system" { 3787 fn glPolygonStipple(mask: *const u8); 3788 } 3789 ::std::mem::transmute(glPolygonStipple(::std::mem::transmute(mask))) 3790 } 3791 #[cfg(not(windows))] 3792 unimplemented!("Unsupported target OS"); 3793 } 3794 #[inline] 3795 pub unsafe fn glPopAttrib() { 3796 #[cfg(windows)] 3797 { 3798 #[link(name = "windows")] 3799 extern "system" { 3800 fn glPopAttrib(); 3801 } 3802 ::std::mem::transmute(glPopAttrib()) 3803 } 3804 #[cfg(not(windows))] 3805 unimplemented!("Unsupported target OS"); 3806 } 3807 #[inline] 3808 pub unsafe fn glPopClientAttrib() { 3809 #[cfg(windows)] 3810 { 3811 #[link(name = "windows")] 3812 extern "system" { 3813 fn glPopClientAttrib(); 3814 } 3815 ::std::mem::transmute(glPopClientAttrib()) 3816 } 3817 #[cfg(not(windows))] 3818 unimplemented!("Unsupported target OS"); 3819 } 3820 #[inline] 3821 pub unsafe fn glPopMatrix() { 3822 #[cfg(windows)] 3823 { 3824 #[link(name = "windows")] 3825 extern "system" { 3826 fn glPopMatrix(); 3827 } 3828 ::std::mem::transmute(glPopMatrix()) 3829 } 3830 #[cfg(not(windows))] 3831 unimplemented!("Unsupported target OS"); 3832 } 3833 #[inline] 3834 pub unsafe fn glPopName() { 3835 #[cfg(windows)] 3836 { 3837 #[link(name = "windows")] 3838 extern "system" { 3839 fn glPopName(); 3840 } 3841 ::std::mem::transmute(glPopName()) 3842 } 3843 #[cfg(not(windows))] 3844 unimplemented!("Unsupported target OS"); 3845 } 3846 #[inline] 3847 pub unsafe fn glPrioritizeTextures(n: i32, textures: *const u32, priorities: *const f32) { 3848 #[cfg(windows)] 3849 { 3850 #[link(name = "windows")] 3851 extern "system" { 3852 fn glPrioritizeTextures(n: i32, textures: *const u32, priorities: *const f32); 3853 } 3854 ::std::mem::transmute(glPrioritizeTextures(::std::mem::transmute(n), ::std::mem::transmute(textures), ::std::mem::transmute(priorities))) 3855 } 3856 #[cfg(not(windows))] 3857 unimplemented!("Unsupported target OS"); 3858 } 3859 #[inline] 3860 pub unsafe fn glPushAttrib(mask: u32) { 3861 #[cfg(windows)] 3862 { 3863 #[link(name = "windows")] 3864 extern "system" { 3865 fn glPushAttrib(mask: u32); 3866 } 3867 ::std::mem::transmute(glPushAttrib(::std::mem::transmute(mask))) 3868 } 3869 #[cfg(not(windows))] 3870 unimplemented!("Unsupported target OS"); 3871 } 3872 #[inline] 3873 pub unsafe fn glPushClientAttrib(mask: u32) { 3874 #[cfg(windows)] 3875 { 3876 #[link(name = "windows")] 3877 extern "system" { 3878 fn glPushClientAttrib(mask: u32); 3879 } 3880 ::std::mem::transmute(glPushClientAttrib(::std::mem::transmute(mask))) 3881 } 3882 #[cfg(not(windows))] 3883 unimplemented!("Unsupported target OS"); 3884 } 3885 #[inline] 3886 pub unsafe fn glPushMatrix() { 3887 #[cfg(windows)] 3888 { 3889 #[link(name = "windows")] 3890 extern "system" { 3891 fn glPushMatrix(); 3892 } 3893 ::std::mem::transmute(glPushMatrix()) 3894 } 3895 #[cfg(not(windows))] 3896 unimplemented!("Unsupported target OS"); 3897 } 3898 #[inline] 3899 pub unsafe fn glPushName(name: u32) { 3900 #[cfg(windows)] 3901 { 3902 #[link(name = "windows")] 3903 extern "system" { 3904 fn glPushName(name: u32); 3905 } 3906 ::std::mem::transmute(glPushName(::std::mem::transmute(name))) 3907 } 3908 #[cfg(not(windows))] 3909 unimplemented!("Unsupported target OS"); 3910 } 3911 #[inline] 3912 pub unsafe fn glRasterPos2d(x: f64, y: f64) { 3913 #[cfg(windows)] 3914 { 3915 #[link(name = "windows")] 3916 extern "system" { 3917 fn glRasterPos2d(x: f64, y: f64); 3918 } 3919 ::std::mem::transmute(glRasterPos2d(::std::mem::transmute(x), ::std::mem::transmute(y))) 3920 } 3921 #[cfg(not(windows))] 3922 unimplemented!("Unsupported target OS"); 3923 } 3924 #[inline] 3925 pub unsafe fn glRasterPos2dv(v: *const f64) { 3926 #[cfg(windows)] 3927 { 3928 #[link(name = "windows")] 3929 extern "system" { 3930 fn glRasterPos2dv(v: *const f64); 3931 } 3932 ::std::mem::transmute(glRasterPos2dv(::std::mem::transmute(v))) 3933 } 3934 #[cfg(not(windows))] 3935 unimplemented!("Unsupported target OS"); 3936 } 3937 #[inline] 3938 pub unsafe fn glRasterPos2f(x: f32, y: f32) { 3939 #[cfg(windows)] 3940 { 3941 #[link(name = "windows")] 3942 extern "system" { 3943 fn glRasterPos2f(x: f32, y: f32); 3944 } 3945 ::std::mem::transmute(glRasterPos2f(::std::mem::transmute(x), ::std::mem::transmute(y))) 3946 } 3947 #[cfg(not(windows))] 3948 unimplemented!("Unsupported target OS"); 3949 } 3950 #[inline] 3951 pub unsafe fn glRasterPos2fv(v: *const f32) { 3952 #[cfg(windows)] 3953 { 3954 #[link(name = "windows")] 3955 extern "system" { 3956 fn glRasterPos2fv(v: *const f32); 3957 } 3958 ::std::mem::transmute(glRasterPos2fv(::std::mem::transmute(v))) 3959 } 3960 #[cfg(not(windows))] 3961 unimplemented!("Unsupported target OS"); 3962 } 3963 #[inline] 3964 pub unsafe fn glRasterPos2i(x: i32, y: i32) { 3965 #[cfg(windows)] 3966 { 3967 #[link(name = "windows")] 3968 extern "system" { 3969 fn glRasterPos2i(x: i32, y: i32); 3970 } 3971 ::std::mem::transmute(glRasterPos2i(::std::mem::transmute(x), ::std::mem::transmute(y))) 3972 } 3973 #[cfg(not(windows))] 3974 unimplemented!("Unsupported target OS"); 3975 } 3976 #[inline] 3977 pub unsafe fn glRasterPos2iv(v: *const i32) { 3978 #[cfg(windows)] 3979 { 3980 #[link(name = "windows")] 3981 extern "system" { 3982 fn glRasterPos2iv(v: *const i32); 3983 } 3984 ::std::mem::transmute(glRasterPos2iv(::std::mem::transmute(v))) 3985 } 3986 #[cfg(not(windows))] 3987 unimplemented!("Unsupported target OS"); 3988 } 3989 #[inline] 3990 pub unsafe fn glRasterPos2s(x: i16, y: i16) { 3991 #[cfg(windows)] 3992 { 3993 #[link(name = "windows")] 3994 extern "system" { 3995 fn glRasterPos2s(x: i16, y: i16); 3996 } 3997 ::std::mem::transmute(glRasterPos2s(::std::mem::transmute(x), ::std::mem::transmute(y))) 3998 } 3999 #[cfg(not(windows))] 4000 unimplemented!("Unsupported target OS"); 4001 } 4002 #[inline] 4003 pub unsafe fn glRasterPos2sv(v: *const i16) { 4004 #[cfg(windows)] 4005 { 4006 #[link(name = "windows")] 4007 extern "system" { 4008 fn glRasterPos2sv(v: *const i16); 4009 } 4010 ::std::mem::transmute(glRasterPos2sv(::std::mem::transmute(v))) 4011 } 4012 #[cfg(not(windows))] 4013 unimplemented!("Unsupported target OS"); 4014 } 4015 #[inline] 4016 pub unsafe fn glRasterPos3d(x: f64, y: f64, z: f64) { 4017 #[cfg(windows)] 4018 { 4019 #[link(name = "windows")] 4020 extern "system" { 4021 fn glRasterPos3d(x: f64, y: f64, z: f64); 4022 } 4023 ::std::mem::transmute(glRasterPos3d(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4024 } 4025 #[cfg(not(windows))] 4026 unimplemented!("Unsupported target OS"); 4027 } 4028 #[inline] 4029 pub unsafe fn glRasterPos3dv(v: *const f64) { 4030 #[cfg(windows)] 4031 { 4032 #[link(name = "windows")] 4033 extern "system" { 4034 fn glRasterPos3dv(v: *const f64); 4035 } 4036 ::std::mem::transmute(glRasterPos3dv(::std::mem::transmute(v))) 4037 } 4038 #[cfg(not(windows))] 4039 unimplemented!("Unsupported target OS"); 4040 } 4041 #[inline] 4042 pub unsafe fn glRasterPos3f(x: f32, y: f32, z: f32) { 4043 #[cfg(windows)] 4044 { 4045 #[link(name = "windows")] 4046 extern "system" { 4047 fn glRasterPos3f(x: f32, y: f32, z: f32); 4048 } 4049 ::std::mem::transmute(glRasterPos3f(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4050 } 4051 #[cfg(not(windows))] 4052 unimplemented!("Unsupported target OS"); 4053 } 4054 #[inline] 4055 pub unsafe fn glRasterPos3fv(v: *const f32) { 4056 #[cfg(windows)] 4057 { 4058 #[link(name = "windows")] 4059 extern "system" { 4060 fn glRasterPos3fv(v: *const f32); 4061 } 4062 ::std::mem::transmute(glRasterPos3fv(::std::mem::transmute(v))) 4063 } 4064 #[cfg(not(windows))] 4065 unimplemented!("Unsupported target OS"); 4066 } 4067 #[inline] 4068 pub unsafe fn glRasterPos3i(x: i32, y: i32, z: i32) { 4069 #[cfg(windows)] 4070 { 4071 #[link(name = "windows")] 4072 extern "system" { 4073 fn glRasterPos3i(x: i32, y: i32, z: i32); 4074 } 4075 ::std::mem::transmute(glRasterPos3i(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4076 } 4077 #[cfg(not(windows))] 4078 unimplemented!("Unsupported target OS"); 4079 } 4080 #[inline] 4081 pub unsafe fn glRasterPos3iv(v: *const i32) { 4082 #[cfg(windows)] 4083 { 4084 #[link(name = "windows")] 4085 extern "system" { 4086 fn glRasterPos3iv(v: *const i32); 4087 } 4088 ::std::mem::transmute(glRasterPos3iv(::std::mem::transmute(v))) 4089 } 4090 #[cfg(not(windows))] 4091 unimplemented!("Unsupported target OS"); 4092 } 4093 #[inline] 4094 pub unsafe fn glRasterPos3s(x: i16, y: i16, z: i16) { 4095 #[cfg(windows)] 4096 { 4097 #[link(name = "windows")] 4098 extern "system" { 4099 fn glRasterPos3s(x: i16, y: i16, z: i16); 4100 } 4101 ::std::mem::transmute(glRasterPos3s(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4102 } 4103 #[cfg(not(windows))] 4104 unimplemented!("Unsupported target OS"); 4105 } 4106 #[inline] 4107 pub unsafe fn glRasterPos3sv(v: *const i16) { 4108 #[cfg(windows)] 4109 { 4110 #[link(name = "windows")] 4111 extern "system" { 4112 fn glRasterPos3sv(v: *const i16); 4113 } 4114 ::std::mem::transmute(glRasterPos3sv(::std::mem::transmute(v))) 4115 } 4116 #[cfg(not(windows))] 4117 unimplemented!("Unsupported target OS"); 4118 } 4119 #[inline] 4120 pub unsafe fn glRasterPos4d(x: f64, y: f64, z: f64, w: f64) { 4121 #[cfg(windows)] 4122 { 4123 #[link(name = "windows")] 4124 extern "system" { 4125 fn glRasterPos4d(x: f64, y: f64, z: f64, w: f64); 4126 } 4127 ::std::mem::transmute(glRasterPos4d(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 4128 } 4129 #[cfg(not(windows))] 4130 unimplemented!("Unsupported target OS"); 4131 } 4132 #[inline] 4133 pub unsafe fn glRasterPos4dv(v: *const f64) { 4134 #[cfg(windows)] 4135 { 4136 #[link(name = "windows")] 4137 extern "system" { 4138 fn glRasterPos4dv(v: *const f64); 4139 } 4140 ::std::mem::transmute(glRasterPos4dv(::std::mem::transmute(v))) 4141 } 4142 #[cfg(not(windows))] 4143 unimplemented!("Unsupported target OS"); 4144 } 4145 #[inline] 4146 pub unsafe fn glRasterPos4f(x: f32, y: f32, z: f32, w: f32) { 4147 #[cfg(windows)] 4148 { 4149 #[link(name = "windows")] 4150 extern "system" { 4151 fn glRasterPos4f(x: f32, y: f32, z: f32, w: f32); 4152 } 4153 ::std::mem::transmute(glRasterPos4f(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 4154 } 4155 #[cfg(not(windows))] 4156 unimplemented!("Unsupported target OS"); 4157 } 4158 #[inline] 4159 pub unsafe fn glRasterPos4fv(v: *const f32) { 4160 #[cfg(windows)] 4161 { 4162 #[link(name = "windows")] 4163 extern "system" { 4164 fn glRasterPos4fv(v: *const f32); 4165 } 4166 ::std::mem::transmute(glRasterPos4fv(::std::mem::transmute(v))) 4167 } 4168 #[cfg(not(windows))] 4169 unimplemented!("Unsupported target OS"); 4170 } 4171 #[inline] 4172 pub unsafe fn glRasterPos4i(x: i32, y: i32, z: i32, w: i32) { 4173 #[cfg(windows)] 4174 { 4175 #[link(name = "windows")] 4176 extern "system" { 4177 fn glRasterPos4i(x: i32, y: i32, z: i32, w: i32); 4178 } 4179 ::std::mem::transmute(glRasterPos4i(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 4180 } 4181 #[cfg(not(windows))] 4182 unimplemented!("Unsupported target OS"); 4183 } 4184 #[inline] 4185 pub unsafe fn glRasterPos4iv(v: *const i32) { 4186 #[cfg(windows)] 4187 { 4188 #[link(name = "windows")] 4189 extern "system" { 4190 fn glRasterPos4iv(v: *const i32); 4191 } 4192 ::std::mem::transmute(glRasterPos4iv(::std::mem::transmute(v))) 4193 } 4194 #[cfg(not(windows))] 4195 unimplemented!("Unsupported target OS"); 4196 } 4197 #[inline] 4198 pub unsafe fn glRasterPos4s(x: i16, y: i16, z: i16, w: i16) { 4199 #[cfg(windows)] 4200 { 4201 #[link(name = "windows")] 4202 extern "system" { 4203 fn glRasterPos4s(x: i16, y: i16, z: i16, w: i16); 4204 } 4205 ::std::mem::transmute(glRasterPos4s(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 4206 } 4207 #[cfg(not(windows))] 4208 unimplemented!("Unsupported target OS"); 4209 } 4210 #[inline] 4211 pub unsafe fn glRasterPos4sv(v: *const i16) { 4212 #[cfg(windows)] 4213 { 4214 #[link(name = "windows")] 4215 extern "system" { 4216 fn glRasterPos4sv(v: *const i16); 4217 } 4218 ::std::mem::transmute(glRasterPos4sv(::std::mem::transmute(v))) 4219 } 4220 #[cfg(not(windows))] 4221 unimplemented!("Unsupported target OS"); 4222 } 4223 #[inline] 4224 pub unsafe fn glReadBuffer(mode: u32) { 4225 #[cfg(windows)] 4226 { 4227 #[link(name = "windows")] 4228 extern "system" { 4229 fn glReadBuffer(mode: u32); 4230 } 4231 ::std::mem::transmute(glReadBuffer(::std::mem::transmute(mode))) 4232 } 4233 #[cfg(not(windows))] 4234 unimplemented!("Unsupported target OS"); 4235 } 4236 #[inline] 4237 pub unsafe fn glReadPixels(x: i32, y: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *mut ::std::ffi::c_void) { 4238 #[cfg(windows)] 4239 { 4240 #[link(name = "windows")] 4241 extern "system" { 4242 fn glReadPixels(x: i32, y: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *mut ::std::ffi::c_void); 4243 } 4244 ::std::mem::transmute(glReadPixels(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 4245 } 4246 #[cfg(not(windows))] 4247 unimplemented!("Unsupported target OS"); 4248 } 4249 #[inline] 4250 pub unsafe fn glRectd(x1: f64, y1: f64, x2: f64, y2: f64) { 4251 #[cfg(windows)] 4252 { 4253 #[link(name = "windows")] 4254 extern "system" { 4255 fn glRectd(x1: f64, y1: f64, x2: f64, y2: f64); 4256 } 4257 ::std::mem::transmute(glRectd(::std::mem::transmute(x1), ::std::mem::transmute(y1), ::std::mem::transmute(x2), ::std::mem::transmute(y2))) 4258 } 4259 #[cfg(not(windows))] 4260 unimplemented!("Unsupported target OS"); 4261 } 4262 #[inline] 4263 pub unsafe fn glRectdv(v1: *const f64, v2: *const f64) { 4264 #[cfg(windows)] 4265 { 4266 #[link(name = "windows")] 4267 extern "system" { 4268 fn glRectdv(v1: *const f64, v2: *const f64); 4269 } 4270 ::std::mem::transmute(glRectdv(::std::mem::transmute(v1), ::std::mem::transmute(v2))) 4271 } 4272 #[cfg(not(windows))] 4273 unimplemented!("Unsupported target OS"); 4274 } 4275 #[inline] 4276 pub unsafe fn glRectf(x1: f32, y1: f32, x2: f32, y2: f32) { 4277 #[cfg(windows)] 4278 { 4279 #[link(name = "windows")] 4280 extern "system" { 4281 fn glRectf(x1: f32, y1: f32, x2: f32, y2: f32); 4282 } 4283 ::std::mem::transmute(glRectf(::std::mem::transmute(x1), ::std::mem::transmute(y1), ::std::mem::transmute(x2), ::std::mem::transmute(y2))) 4284 } 4285 #[cfg(not(windows))] 4286 unimplemented!("Unsupported target OS"); 4287 } 4288 #[inline] 4289 pub unsafe fn glRectfv(v1: *const f32, v2: *const f32) { 4290 #[cfg(windows)] 4291 { 4292 #[link(name = "windows")] 4293 extern "system" { 4294 fn glRectfv(v1: *const f32, v2: *const f32); 4295 } 4296 ::std::mem::transmute(glRectfv(::std::mem::transmute(v1), ::std::mem::transmute(v2))) 4297 } 4298 #[cfg(not(windows))] 4299 unimplemented!("Unsupported target OS"); 4300 } 4301 #[inline] 4302 pub unsafe fn glRecti(x1: i32, y1: i32, x2: i32, y2: i32) { 4303 #[cfg(windows)] 4304 { 4305 #[link(name = "windows")] 4306 extern "system" { 4307 fn glRecti(x1: i32, y1: i32, x2: i32, y2: i32); 4308 } 4309 ::std::mem::transmute(glRecti(::std::mem::transmute(x1), ::std::mem::transmute(y1), ::std::mem::transmute(x2), ::std::mem::transmute(y2))) 4310 } 4311 #[cfg(not(windows))] 4312 unimplemented!("Unsupported target OS"); 4313 } 4314 #[inline] 4315 pub unsafe fn glRectiv(v1: *const i32, v2: *const i32) { 4316 #[cfg(windows)] 4317 { 4318 #[link(name = "windows")] 4319 extern "system" { 4320 fn glRectiv(v1: *const i32, v2: *const i32); 4321 } 4322 ::std::mem::transmute(glRectiv(::std::mem::transmute(v1), ::std::mem::transmute(v2))) 4323 } 4324 #[cfg(not(windows))] 4325 unimplemented!("Unsupported target OS"); 4326 } 4327 #[inline] 4328 pub unsafe fn glRects(x1: i16, y1: i16, x2: i16, y2: i16) { 4329 #[cfg(windows)] 4330 { 4331 #[link(name = "windows")] 4332 extern "system" { 4333 fn glRects(x1: i16, y1: i16, x2: i16, y2: i16); 4334 } 4335 ::std::mem::transmute(glRects(::std::mem::transmute(x1), ::std::mem::transmute(y1), ::std::mem::transmute(x2), ::std::mem::transmute(y2))) 4336 } 4337 #[cfg(not(windows))] 4338 unimplemented!("Unsupported target OS"); 4339 } 4340 #[inline] 4341 pub unsafe fn glRectsv(v1: *const i16, v2: *const i16) { 4342 #[cfg(windows)] 4343 { 4344 #[link(name = "windows")] 4345 extern "system" { 4346 fn glRectsv(v1: *const i16, v2: *const i16); 4347 } 4348 ::std::mem::transmute(glRectsv(::std::mem::transmute(v1), ::std::mem::transmute(v2))) 4349 } 4350 #[cfg(not(windows))] 4351 unimplemented!("Unsupported target OS"); 4352 } 4353 #[inline] 4354 pub unsafe fn glRenderMode(mode: u32) -> i32 { 4355 #[cfg(windows)] 4356 { 4357 #[link(name = "windows")] 4358 extern "system" { 4359 fn glRenderMode(mode: u32) -> i32; 4360 } 4361 ::std::mem::transmute(glRenderMode(::std::mem::transmute(mode))) 4362 } 4363 #[cfg(not(windows))] 4364 unimplemented!("Unsupported target OS"); 4365 } 4366 #[inline] 4367 pub unsafe fn glRotated(angle: f64, x: f64, y: f64, z: f64) { 4368 #[cfg(windows)] 4369 { 4370 #[link(name = "windows")] 4371 extern "system" { 4372 fn glRotated(angle: f64, x: f64, y: f64, z: f64); 4373 } 4374 ::std::mem::transmute(glRotated(::std::mem::transmute(angle), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4375 } 4376 #[cfg(not(windows))] 4377 unimplemented!("Unsupported target OS"); 4378 } 4379 #[inline] 4380 pub unsafe fn glRotatef(angle: f32, x: f32, y: f32, z: f32) { 4381 #[cfg(windows)] 4382 { 4383 #[link(name = "windows")] 4384 extern "system" { 4385 fn glRotatef(angle: f32, x: f32, y: f32, z: f32); 4386 } 4387 ::std::mem::transmute(glRotatef(::std::mem::transmute(angle), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4388 } 4389 #[cfg(not(windows))] 4390 unimplemented!("Unsupported target OS"); 4391 } 4392 #[inline] 4393 pub unsafe fn glScaled(x: f64, y: f64, z: f64) { 4394 #[cfg(windows)] 4395 { 4396 #[link(name = "windows")] 4397 extern "system" { 4398 fn glScaled(x: f64, y: f64, z: f64); 4399 } 4400 ::std::mem::transmute(glScaled(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4401 } 4402 #[cfg(not(windows))] 4403 unimplemented!("Unsupported target OS"); 4404 } 4405 #[inline] 4406 pub unsafe fn glScalef(x: f32, y: f32, z: f32) { 4407 #[cfg(windows)] 4408 { 4409 #[link(name = "windows")] 4410 extern "system" { 4411 fn glScalef(x: f32, y: f32, z: f32); 4412 } 4413 ::std::mem::transmute(glScalef(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 4414 } 4415 #[cfg(not(windows))] 4416 unimplemented!("Unsupported target OS"); 4417 } 4418 #[inline] 4419 pub unsafe fn glScissor(x: i32, y: i32, width: i32, height: i32) { 4420 #[cfg(windows)] 4421 { 4422 #[link(name = "windows")] 4423 extern "system" { 4424 fn glScissor(x: i32, y: i32, width: i32, height: i32); 4425 } 4426 ::std::mem::transmute(glScissor(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height))) 4427 } 4428 #[cfg(not(windows))] 4429 unimplemented!("Unsupported target OS"); 4430 } 4431 #[inline] 4432 pub unsafe fn glSelectBuffer(size: i32, buffer: *mut u32) { 4433 #[cfg(windows)] 4434 { 4435 #[link(name = "windows")] 4436 extern "system" { 4437 fn glSelectBuffer(size: i32, buffer: *mut u32); 4438 } 4439 ::std::mem::transmute(glSelectBuffer(::std::mem::transmute(size), ::std::mem::transmute(buffer))) 4440 } 4441 #[cfg(not(windows))] 4442 unimplemented!("Unsupported target OS"); 4443 } 4444 #[inline] 4445 pub unsafe fn glShadeModel(mode: u32) { 4446 #[cfg(windows)] 4447 { 4448 #[link(name = "windows")] 4449 extern "system" { 4450 fn glShadeModel(mode: u32); 4451 } 4452 ::std::mem::transmute(glShadeModel(::std::mem::transmute(mode))) 4453 } 4454 #[cfg(not(windows))] 4455 unimplemented!("Unsupported target OS"); 4456 } 4457 #[inline] 4458 pub unsafe fn glStencilFunc(func: u32, r#ref: i32, mask: u32) { 4459 #[cfg(windows)] 4460 { 4461 #[link(name = "windows")] 4462 extern "system" { 4463 fn glStencilFunc(func: u32, r#ref: i32, mask: u32); 4464 } 4465 ::std::mem::transmute(glStencilFunc(::std::mem::transmute(func), ::std::mem::transmute(r#ref), ::std::mem::transmute(mask))) 4466 } 4467 #[cfg(not(windows))] 4468 unimplemented!("Unsupported target OS"); 4469 } 4470 #[inline] 4471 pub unsafe fn glStencilMask(mask: u32) { 4472 #[cfg(windows)] 4473 { 4474 #[link(name = "windows")] 4475 extern "system" { 4476 fn glStencilMask(mask: u32); 4477 } 4478 ::std::mem::transmute(glStencilMask(::std::mem::transmute(mask))) 4479 } 4480 #[cfg(not(windows))] 4481 unimplemented!("Unsupported target OS"); 4482 } 4483 #[inline] 4484 pub unsafe fn glStencilOp(fail: u32, zfail: u32, zpass: u32) { 4485 #[cfg(windows)] 4486 { 4487 #[link(name = "windows")] 4488 extern "system" { 4489 fn glStencilOp(fail: u32, zfail: u32, zpass: u32); 4490 } 4491 ::std::mem::transmute(glStencilOp(::std::mem::transmute(fail), ::std::mem::transmute(zfail), ::std::mem::transmute(zpass))) 4492 } 4493 #[cfg(not(windows))] 4494 unimplemented!("Unsupported target OS"); 4495 } 4496 #[inline] 4497 pub unsafe fn glTexCoord1d(s: f64) { 4498 #[cfg(windows)] 4499 { 4500 #[link(name = "windows")] 4501 extern "system" { 4502 fn glTexCoord1d(s: f64); 4503 } 4504 ::std::mem::transmute(glTexCoord1d(::std::mem::transmute(s))) 4505 } 4506 #[cfg(not(windows))] 4507 unimplemented!("Unsupported target OS"); 4508 } 4509 #[inline] 4510 pub unsafe fn glTexCoord1dv(v: *const f64) { 4511 #[cfg(windows)] 4512 { 4513 #[link(name = "windows")] 4514 extern "system" { 4515 fn glTexCoord1dv(v: *const f64); 4516 } 4517 ::std::mem::transmute(glTexCoord1dv(::std::mem::transmute(v))) 4518 } 4519 #[cfg(not(windows))] 4520 unimplemented!("Unsupported target OS"); 4521 } 4522 #[inline] 4523 pub unsafe fn glTexCoord1f(s: f32) { 4524 #[cfg(windows)] 4525 { 4526 #[link(name = "windows")] 4527 extern "system" { 4528 fn glTexCoord1f(s: f32); 4529 } 4530 ::std::mem::transmute(glTexCoord1f(::std::mem::transmute(s))) 4531 } 4532 #[cfg(not(windows))] 4533 unimplemented!("Unsupported target OS"); 4534 } 4535 #[inline] 4536 pub unsafe fn glTexCoord1fv(v: *const f32) { 4537 #[cfg(windows)] 4538 { 4539 #[link(name = "windows")] 4540 extern "system" { 4541 fn glTexCoord1fv(v: *const f32); 4542 } 4543 ::std::mem::transmute(glTexCoord1fv(::std::mem::transmute(v))) 4544 } 4545 #[cfg(not(windows))] 4546 unimplemented!("Unsupported target OS"); 4547 } 4548 #[inline] 4549 pub unsafe fn glTexCoord1i(s: i32) { 4550 #[cfg(windows)] 4551 { 4552 #[link(name = "windows")] 4553 extern "system" { 4554 fn glTexCoord1i(s: i32); 4555 } 4556 ::std::mem::transmute(glTexCoord1i(::std::mem::transmute(s))) 4557 } 4558 #[cfg(not(windows))] 4559 unimplemented!("Unsupported target OS"); 4560 } 4561 #[inline] 4562 pub unsafe fn glTexCoord1iv(v: *const i32) { 4563 #[cfg(windows)] 4564 { 4565 #[link(name = "windows")] 4566 extern "system" { 4567 fn glTexCoord1iv(v: *const i32); 4568 } 4569 ::std::mem::transmute(glTexCoord1iv(::std::mem::transmute(v))) 4570 } 4571 #[cfg(not(windows))] 4572 unimplemented!("Unsupported target OS"); 4573 } 4574 #[inline] 4575 pub unsafe fn glTexCoord1s(s: i16) { 4576 #[cfg(windows)] 4577 { 4578 #[link(name = "windows")] 4579 extern "system" { 4580 fn glTexCoord1s(s: i16); 4581 } 4582 ::std::mem::transmute(glTexCoord1s(::std::mem::transmute(s))) 4583 } 4584 #[cfg(not(windows))] 4585 unimplemented!("Unsupported target OS"); 4586 } 4587 #[inline] 4588 pub unsafe fn glTexCoord1sv(v: *const i16) { 4589 #[cfg(windows)] 4590 { 4591 #[link(name = "windows")] 4592 extern "system" { 4593 fn glTexCoord1sv(v: *const i16); 4594 } 4595 ::std::mem::transmute(glTexCoord1sv(::std::mem::transmute(v))) 4596 } 4597 #[cfg(not(windows))] 4598 unimplemented!("Unsupported target OS"); 4599 } 4600 #[inline] 4601 pub unsafe fn glTexCoord2d(s: f64, t: f64) { 4602 #[cfg(windows)] 4603 { 4604 #[link(name = "windows")] 4605 extern "system" { 4606 fn glTexCoord2d(s: f64, t: f64); 4607 } 4608 ::std::mem::transmute(glTexCoord2d(::std::mem::transmute(s), ::std::mem::transmute(t))) 4609 } 4610 #[cfg(not(windows))] 4611 unimplemented!("Unsupported target OS"); 4612 } 4613 #[inline] 4614 pub unsafe fn glTexCoord2dv(v: *const f64) { 4615 #[cfg(windows)] 4616 { 4617 #[link(name = "windows")] 4618 extern "system" { 4619 fn glTexCoord2dv(v: *const f64); 4620 } 4621 ::std::mem::transmute(glTexCoord2dv(::std::mem::transmute(v))) 4622 } 4623 #[cfg(not(windows))] 4624 unimplemented!("Unsupported target OS"); 4625 } 4626 #[inline] 4627 pub unsafe fn glTexCoord2f(s: f32, t: f32) { 4628 #[cfg(windows)] 4629 { 4630 #[link(name = "windows")] 4631 extern "system" { 4632 fn glTexCoord2f(s: f32, t: f32); 4633 } 4634 ::std::mem::transmute(glTexCoord2f(::std::mem::transmute(s), ::std::mem::transmute(t))) 4635 } 4636 #[cfg(not(windows))] 4637 unimplemented!("Unsupported target OS"); 4638 } 4639 #[inline] 4640 pub unsafe fn glTexCoord2fv(v: *const f32) { 4641 #[cfg(windows)] 4642 { 4643 #[link(name = "windows")] 4644 extern "system" { 4645 fn glTexCoord2fv(v: *const f32); 4646 } 4647 ::std::mem::transmute(glTexCoord2fv(::std::mem::transmute(v))) 4648 } 4649 #[cfg(not(windows))] 4650 unimplemented!("Unsupported target OS"); 4651 } 4652 #[inline] 4653 pub unsafe fn glTexCoord2i(s: i32, t: i32) { 4654 #[cfg(windows)] 4655 { 4656 #[link(name = "windows")] 4657 extern "system" { 4658 fn glTexCoord2i(s: i32, t: i32); 4659 } 4660 ::std::mem::transmute(glTexCoord2i(::std::mem::transmute(s), ::std::mem::transmute(t))) 4661 } 4662 #[cfg(not(windows))] 4663 unimplemented!("Unsupported target OS"); 4664 } 4665 #[inline] 4666 pub unsafe fn glTexCoord2iv(v: *const i32) { 4667 #[cfg(windows)] 4668 { 4669 #[link(name = "windows")] 4670 extern "system" { 4671 fn glTexCoord2iv(v: *const i32); 4672 } 4673 ::std::mem::transmute(glTexCoord2iv(::std::mem::transmute(v))) 4674 } 4675 #[cfg(not(windows))] 4676 unimplemented!("Unsupported target OS"); 4677 } 4678 #[inline] 4679 pub unsafe fn glTexCoord2s(s: i16, t: i16) { 4680 #[cfg(windows)] 4681 { 4682 #[link(name = "windows")] 4683 extern "system" { 4684 fn glTexCoord2s(s: i16, t: i16); 4685 } 4686 ::std::mem::transmute(glTexCoord2s(::std::mem::transmute(s), ::std::mem::transmute(t))) 4687 } 4688 #[cfg(not(windows))] 4689 unimplemented!("Unsupported target OS"); 4690 } 4691 #[inline] 4692 pub unsafe fn glTexCoord2sv(v: *const i16) { 4693 #[cfg(windows)] 4694 { 4695 #[link(name = "windows")] 4696 extern "system" { 4697 fn glTexCoord2sv(v: *const i16); 4698 } 4699 ::std::mem::transmute(glTexCoord2sv(::std::mem::transmute(v))) 4700 } 4701 #[cfg(not(windows))] 4702 unimplemented!("Unsupported target OS"); 4703 } 4704 #[inline] 4705 pub unsafe fn glTexCoord3d(s: f64, t: f64, r: f64) { 4706 #[cfg(windows)] 4707 { 4708 #[link(name = "windows")] 4709 extern "system" { 4710 fn glTexCoord3d(s: f64, t: f64, r: f64); 4711 } 4712 ::std::mem::transmute(glTexCoord3d(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r))) 4713 } 4714 #[cfg(not(windows))] 4715 unimplemented!("Unsupported target OS"); 4716 } 4717 #[inline] 4718 pub unsafe fn glTexCoord3dv(v: *const f64) { 4719 #[cfg(windows)] 4720 { 4721 #[link(name = "windows")] 4722 extern "system" { 4723 fn glTexCoord3dv(v: *const f64); 4724 } 4725 ::std::mem::transmute(glTexCoord3dv(::std::mem::transmute(v))) 4726 } 4727 #[cfg(not(windows))] 4728 unimplemented!("Unsupported target OS"); 4729 } 4730 #[inline] 4731 pub unsafe fn glTexCoord3f(s: f32, t: f32, r: f32) { 4732 #[cfg(windows)] 4733 { 4734 #[link(name = "windows")] 4735 extern "system" { 4736 fn glTexCoord3f(s: f32, t: f32, r: f32); 4737 } 4738 ::std::mem::transmute(glTexCoord3f(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r))) 4739 } 4740 #[cfg(not(windows))] 4741 unimplemented!("Unsupported target OS"); 4742 } 4743 #[inline] 4744 pub unsafe fn glTexCoord3fv(v: *const f32) { 4745 #[cfg(windows)] 4746 { 4747 #[link(name = "windows")] 4748 extern "system" { 4749 fn glTexCoord3fv(v: *const f32); 4750 } 4751 ::std::mem::transmute(glTexCoord3fv(::std::mem::transmute(v))) 4752 } 4753 #[cfg(not(windows))] 4754 unimplemented!("Unsupported target OS"); 4755 } 4756 #[inline] 4757 pub unsafe fn glTexCoord3i(s: i32, t: i32, r: i32) { 4758 #[cfg(windows)] 4759 { 4760 #[link(name = "windows")] 4761 extern "system" { 4762 fn glTexCoord3i(s: i32, t: i32, r: i32); 4763 } 4764 ::std::mem::transmute(glTexCoord3i(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r))) 4765 } 4766 #[cfg(not(windows))] 4767 unimplemented!("Unsupported target OS"); 4768 } 4769 #[inline] 4770 pub unsafe fn glTexCoord3iv(v: *const i32) { 4771 #[cfg(windows)] 4772 { 4773 #[link(name = "windows")] 4774 extern "system" { 4775 fn glTexCoord3iv(v: *const i32); 4776 } 4777 ::std::mem::transmute(glTexCoord3iv(::std::mem::transmute(v))) 4778 } 4779 #[cfg(not(windows))] 4780 unimplemented!("Unsupported target OS"); 4781 } 4782 #[inline] 4783 pub unsafe fn glTexCoord3s(s: i16, t: i16, r: i16) { 4784 #[cfg(windows)] 4785 { 4786 #[link(name = "windows")] 4787 extern "system" { 4788 fn glTexCoord3s(s: i16, t: i16, r: i16); 4789 } 4790 ::std::mem::transmute(glTexCoord3s(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r))) 4791 } 4792 #[cfg(not(windows))] 4793 unimplemented!("Unsupported target OS"); 4794 } 4795 #[inline] 4796 pub unsafe fn glTexCoord3sv(v: *const i16) { 4797 #[cfg(windows)] 4798 { 4799 #[link(name = "windows")] 4800 extern "system" { 4801 fn glTexCoord3sv(v: *const i16); 4802 } 4803 ::std::mem::transmute(glTexCoord3sv(::std::mem::transmute(v))) 4804 } 4805 #[cfg(not(windows))] 4806 unimplemented!("Unsupported target OS"); 4807 } 4808 #[inline] 4809 pub unsafe fn glTexCoord4d(s: f64, t: f64, r: f64, q: f64) { 4810 #[cfg(windows)] 4811 { 4812 #[link(name = "windows")] 4813 extern "system" { 4814 fn glTexCoord4d(s: f64, t: f64, r: f64, q: f64); 4815 } 4816 ::std::mem::transmute(glTexCoord4d(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r), ::std::mem::transmute(q))) 4817 } 4818 #[cfg(not(windows))] 4819 unimplemented!("Unsupported target OS"); 4820 } 4821 #[inline] 4822 pub unsafe fn glTexCoord4dv(v: *const f64) { 4823 #[cfg(windows)] 4824 { 4825 #[link(name = "windows")] 4826 extern "system" { 4827 fn glTexCoord4dv(v: *const f64); 4828 } 4829 ::std::mem::transmute(glTexCoord4dv(::std::mem::transmute(v))) 4830 } 4831 #[cfg(not(windows))] 4832 unimplemented!("Unsupported target OS"); 4833 } 4834 #[inline] 4835 pub unsafe fn glTexCoord4f(s: f32, t: f32, r: f32, q: f32) { 4836 #[cfg(windows)] 4837 { 4838 #[link(name = "windows")] 4839 extern "system" { 4840 fn glTexCoord4f(s: f32, t: f32, r: f32, q: f32); 4841 } 4842 ::std::mem::transmute(glTexCoord4f(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r), ::std::mem::transmute(q))) 4843 } 4844 #[cfg(not(windows))] 4845 unimplemented!("Unsupported target OS"); 4846 } 4847 #[inline] 4848 pub unsafe fn glTexCoord4fv(v: *const f32) { 4849 #[cfg(windows)] 4850 { 4851 #[link(name = "windows")] 4852 extern "system" { 4853 fn glTexCoord4fv(v: *const f32); 4854 } 4855 ::std::mem::transmute(glTexCoord4fv(::std::mem::transmute(v))) 4856 } 4857 #[cfg(not(windows))] 4858 unimplemented!("Unsupported target OS"); 4859 } 4860 #[inline] 4861 pub unsafe fn glTexCoord4i(s: i32, t: i32, r: i32, q: i32) { 4862 #[cfg(windows)] 4863 { 4864 #[link(name = "windows")] 4865 extern "system" { 4866 fn glTexCoord4i(s: i32, t: i32, r: i32, q: i32); 4867 } 4868 ::std::mem::transmute(glTexCoord4i(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r), ::std::mem::transmute(q))) 4869 } 4870 #[cfg(not(windows))] 4871 unimplemented!("Unsupported target OS"); 4872 } 4873 #[inline] 4874 pub unsafe fn glTexCoord4iv(v: *const i32) { 4875 #[cfg(windows)] 4876 { 4877 #[link(name = "windows")] 4878 extern "system" { 4879 fn glTexCoord4iv(v: *const i32); 4880 } 4881 ::std::mem::transmute(glTexCoord4iv(::std::mem::transmute(v))) 4882 } 4883 #[cfg(not(windows))] 4884 unimplemented!("Unsupported target OS"); 4885 } 4886 #[inline] 4887 pub unsafe fn glTexCoord4s(s: i16, t: i16, r: i16, q: i16) { 4888 #[cfg(windows)] 4889 { 4890 #[link(name = "windows")] 4891 extern "system" { 4892 fn glTexCoord4s(s: i16, t: i16, r: i16, q: i16); 4893 } 4894 ::std::mem::transmute(glTexCoord4s(::std::mem::transmute(s), ::std::mem::transmute(t), ::std::mem::transmute(r), ::std::mem::transmute(q))) 4895 } 4896 #[cfg(not(windows))] 4897 unimplemented!("Unsupported target OS"); 4898 } 4899 #[inline] 4900 pub unsafe fn glTexCoord4sv(v: *const i16) { 4901 #[cfg(windows)] 4902 { 4903 #[link(name = "windows")] 4904 extern "system" { 4905 fn glTexCoord4sv(v: *const i16); 4906 } 4907 ::std::mem::transmute(glTexCoord4sv(::std::mem::transmute(v))) 4908 } 4909 #[cfg(not(windows))] 4910 unimplemented!("Unsupported target OS"); 4911 } 4912 #[inline] 4913 pub unsafe fn glTexCoordPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 4914 #[cfg(windows)] 4915 { 4916 #[link(name = "windows")] 4917 extern "system" { 4918 fn glTexCoordPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void); 4919 } 4920 ::std::mem::transmute(glTexCoordPointer(::std::mem::transmute(size), ::std::mem::transmute(r#type), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 4921 } 4922 #[cfg(not(windows))] 4923 unimplemented!("Unsupported target OS"); 4924 } 4925 #[inline] 4926 pub unsafe fn glTexEnvf(target: u32, pname: u32, param2: f32) { 4927 #[cfg(windows)] 4928 { 4929 #[link(name = "windows")] 4930 extern "system" { 4931 fn glTexEnvf(target: u32, pname: u32, param2: f32); 4932 } 4933 ::std::mem::transmute(glTexEnvf(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 4934 } 4935 #[cfg(not(windows))] 4936 unimplemented!("Unsupported target OS"); 4937 } 4938 #[inline] 4939 pub unsafe fn glTexEnvfv(target: u32, pname: u32, params: *const f32) { 4940 #[cfg(windows)] 4941 { 4942 #[link(name = "windows")] 4943 extern "system" { 4944 fn glTexEnvfv(target: u32, pname: u32, params: *const f32); 4945 } 4946 ::std::mem::transmute(glTexEnvfv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 4947 } 4948 #[cfg(not(windows))] 4949 unimplemented!("Unsupported target OS"); 4950 } 4951 #[inline] 4952 pub unsafe fn glTexEnvi(target: u32, pname: u32, param2: i32) { 4953 #[cfg(windows)] 4954 { 4955 #[link(name = "windows")] 4956 extern "system" { 4957 fn glTexEnvi(target: u32, pname: u32, param2: i32); 4958 } 4959 ::std::mem::transmute(glTexEnvi(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 4960 } 4961 #[cfg(not(windows))] 4962 unimplemented!("Unsupported target OS"); 4963 } 4964 #[inline] 4965 pub unsafe fn glTexEnviv(target: u32, pname: u32, params: *const i32) { 4966 #[cfg(windows)] 4967 { 4968 #[link(name = "windows")] 4969 extern "system" { 4970 fn glTexEnviv(target: u32, pname: u32, params: *const i32); 4971 } 4972 ::std::mem::transmute(glTexEnviv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 4973 } 4974 #[cfg(not(windows))] 4975 unimplemented!("Unsupported target OS"); 4976 } 4977 #[inline] 4978 pub unsafe fn glTexGend(coord: u32, pname: u32, param2: f64) { 4979 #[cfg(windows)] 4980 { 4981 #[link(name = "windows")] 4982 extern "system" { 4983 fn glTexGend(coord: u32, pname: u32, param2: f64); 4984 } 4985 ::std::mem::transmute(glTexGend(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 4986 } 4987 #[cfg(not(windows))] 4988 unimplemented!("Unsupported target OS"); 4989 } 4990 #[inline] 4991 pub unsafe fn glTexGendv(coord: u32, pname: u32, params: *const f64) { 4992 #[cfg(windows)] 4993 { 4994 #[link(name = "windows")] 4995 extern "system" { 4996 fn glTexGendv(coord: u32, pname: u32, params: *const f64); 4997 } 4998 ::std::mem::transmute(glTexGendv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 4999 } 5000 #[cfg(not(windows))] 5001 unimplemented!("Unsupported target OS"); 5002 } 5003 #[inline] 5004 pub unsafe fn glTexGenf(coord: u32, pname: u32, param2: f32) { 5005 #[cfg(windows)] 5006 { 5007 #[link(name = "windows")] 5008 extern "system" { 5009 fn glTexGenf(coord: u32, pname: u32, param2: f32); 5010 } 5011 ::std::mem::transmute(glTexGenf(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 5012 } 5013 #[cfg(not(windows))] 5014 unimplemented!("Unsupported target OS"); 5015 } 5016 #[inline] 5017 pub unsafe fn glTexGenfv(coord: u32, pname: u32, params: *const f32) { 5018 #[cfg(windows)] 5019 { 5020 #[link(name = "windows")] 5021 extern "system" { 5022 fn glTexGenfv(coord: u32, pname: u32, params: *const f32); 5023 } 5024 ::std::mem::transmute(glTexGenfv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 5025 } 5026 #[cfg(not(windows))] 5027 unimplemented!("Unsupported target OS"); 5028 } 5029 #[inline] 5030 pub unsafe fn glTexGeni(coord: u32, pname: u32, param2: i32) { 5031 #[cfg(windows)] 5032 { 5033 #[link(name = "windows")] 5034 extern "system" { 5035 fn glTexGeni(coord: u32, pname: u32, param2: i32); 5036 } 5037 ::std::mem::transmute(glTexGeni(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 5038 } 5039 #[cfg(not(windows))] 5040 unimplemented!("Unsupported target OS"); 5041 } 5042 #[inline] 5043 pub unsafe fn glTexGeniv(coord: u32, pname: u32, params: *const i32) { 5044 #[cfg(windows)] 5045 { 5046 #[link(name = "windows")] 5047 extern "system" { 5048 fn glTexGeniv(coord: u32, pname: u32, params: *const i32); 5049 } 5050 ::std::mem::transmute(glTexGeniv(::std::mem::transmute(coord), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 5051 } 5052 #[cfg(not(windows))] 5053 unimplemented!("Unsupported target OS"); 5054 } 5055 #[inline] 5056 pub unsafe fn glTexImage1D(target: u32, level: i32, internalformat: i32, width: i32, border: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void) { 5057 #[cfg(windows)] 5058 { 5059 #[link(name = "windows")] 5060 extern "system" { 5061 fn glTexImage1D(target: u32, level: i32, internalformat: i32, width: i32, border: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void); 5062 } 5063 ::std::mem::transmute(glTexImage1D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(internalformat), ::std::mem::transmute(width), ::std::mem::transmute(border), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 5064 } 5065 #[cfg(not(windows))] 5066 unimplemented!("Unsupported target OS"); 5067 } 5068 #[inline] 5069 pub unsafe fn glTexImage2D(target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void) { 5070 #[cfg(windows)] 5071 { 5072 #[link(name = "windows")] 5073 extern "system" { 5074 fn glTexImage2D(target: u32, level: i32, internalformat: i32, width: i32, height: i32, border: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void); 5075 } 5076 ::std::mem::transmute(glTexImage2D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(internalformat), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(border), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 5077 } 5078 #[cfg(not(windows))] 5079 unimplemented!("Unsupported target OS"); 5080 } 5081 #[inline] 5082 pub unsafe fn glTexParameterf(target: u32, pname: u32, param2: f32) { 5083 #[cfg(windows)] 5084 { 5085 #[link(name = "windows")] 5086 extern "system" { 5087 fn glTexParameterf(target: u32, pname: u32, param2: f32); 5088 } 5089 ::std::mem::transmute(glTexParameterf(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 5090 } 5091 #[cfg(not(windows))] 5092 unimplemented!("Unsupported target OS"); 5093 } 5094 #[inline] 5095 pub unsafe fn glTexParameterfv(target: u32, pname: u32, params: *const f32) { 5096 #[cfg(windows)] 5097 { 5098 #[link(name = "windows")] 5099 extern "system" { 5100 fn glTexParameterfv(target: u32, pname: u32, params: *const f32); 5101 } 5102 ::std::mem::transmute(glTexParameterfv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 5103 } 5104 #[cfg(not(windows))] 5105 unimplemented!("Unsupported target OS"); 5106 } 5107 #[inline] 5108 pub unsafe fn glTexParameteri(target: u32, pname: u32, param2: i32) { 5109 #[cfg(windows)] 5110 { 5111 #[link(name = "windows")] 5112 extern "system" { 5113 fn glTexParameteri(target: u32, pname: u32, param2: i32); 5114 } 5115 ::std::mem::transmute(glTexParameteri(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(param2))) 5116 } 5117 #[cfg(not(windows))] 5118 unimplemented!("Unsupported target OS"); 5119 } 5120 #[inline] 5121 pub unsafe fn glTexParameteriv(target: u32, pname: u32, params: *const i32) { 5122 #[cfg(windows)] 5123 { 5124 #[link(name = "windows")] 5125 extern "system" { 5126 fn glTexParameteriv(target: u32, pname: u32, params: *const i32); 5127 } 5128 ::std::mem::transmute(glTexParameteriv(::std::mem::transmute(target), ::std::mem::transmute(pname), ::std::mem::transmute(params))) 5129 } 5130 #[cfg(not(windows))] 5131 unimplemented!("Unsupported target OS"); 5132 } 5133 #[inline] 5134 pub unsafe fn glTexSubImage1D(target: u32, level: i32, xoffset: i32, width: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void) { 5135 #[cfg(windows)] 5136 { 5137 #[link(name = "windows")] 5138 extern "system" { 5139 fn glTexSubImage1D(target: u32, level: i32, xoffset: i32, width: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void); 5140 } 5141 ::std::mem::transmute(glTexSubImage1D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(xoffset), ::std::mem::transmute(width), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 5142 } 5143 #[cfg(not(windows))] 5144 unimplemented!("Unsupported target OS"); 5145 } 5146 #[inline] 5147 pub unsafe fn glTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void) { 5148 #[cfg(windows)] 5149 { 5150 #[link(name = "windows")] 5151 extern "system" { 5152 fn glTexSubImage2D(target: u32, level: i32, xoffset: i32, yoffset: i32, width: i32, height: i32, format: u32, r#type: u32, pixels: *const ::std::ffi::c_void); 5153 } 5154 ::std::mem::transmute(glTexSubImage2D(::std::mem::transmute(target), ::std::mem::transmute(level), ::std::mem::transmute(xoffset), ::std::mem::transmute(yoffset), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(pixels))) 5155 } 5156 #[cfg(not(windows))] 5157 unimplemented!("Unsupported target OS"); 5158 } 5159 #[inline] 5160 pub unsafe fn glTranslated(x: f64, y: f64, z: f64) { 5161 #[cfg(windows)] 5162 { 5163 #[link(name = "windows")] 5164 extern "system" { 5165 fn glTranslated(x: f64, y: f64, z: f64); 5166 } 5167 ::std::mem::transmute(glTranslated(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5168 } 5169 #[cfg(not(windows))] 5170 unimplemented!("Unsupported target OS"); 5171 } 5172 #[inline] 5173 pub unsafe fn glTranslatef(x: f32, y: f32, z: f32) { 5174 #[cfg(windows)] 5175 { 5176 #[link(name = "windows")] 5177 extern "system" { 5178 fn glTranslatef(x: f32, y: f32, z: f32); 5179 } 5180 ::std::mem::transmute(glTranslatef(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5181 } 5182 #[cfg(not(windows))] 5183 unimplemented!("Unsupported target OS"); 5184 } 5185 #[inline] 5186 pub unsafe fn glVertex2d(x: f64, y: f64) { 5187 #[cfg(windows)] 5188 { 5189 #[link(name = "windows")] 5190 extern "system" { 5191 fn glVertex2d(x: f64, y: f64); 5192 } 5193 ::std::mem::transmute(glVertex2d(::std::mem::transmute(x), ::std::mem::transmute(y))) 5194 } 5195 #[cfg(not(windows))] 5196 unimplemented!("Unsupported target OS"); 5197 } 5198 #[inline] 5199 pub unsafe fn glVertex2dv(v: *const f64) { 5200 #[cfg(windows)] 5201 { 5202 #[link(name = "windows")] 5203 extern "system" { 5204 fn glVertex2dv(v: *const f64); 5205 } 5206 ::std::mem::transmute(glVertex2dv(::std::mem::transmute(v))) 5207 } 5208 #[cfg(not(windows))] 5209 unimplemented!("Unsupported target OS"); 5210 } 5211 #[inline] 5212 pub unsafe fn glVertex2f(x: f32, y: f32) { 5213 #[cfg(windows)] 5214 { 5215 #[link(name = "windows")] 5216 extern "system" { 5217 fn glVertex2f(x: f32, y: f32); 5218 } 5219 ::std::mem::transmute(glVertex2f(::std::mem::transmute(x), ::std::mem::transmute(y))) 5220 } 5221 #[cfg(not(windows))] 5222 unimplemented!("Unsupported target OS"); 5223 } 5224 #[inline] 5225 pub unsafe fn glVertex2fv(v: *const f32) { 5226 #[cfg(windows)] 5227 { 5228 #[link(name = "windows")] 5229 extern "system" { 5230 fn glVertex2fv(v: *const f32); 5231 } 5232 ::std::mem::transmute(glVertex2fv(::std::mem::transmute(v))) 5233 } 5234 #[cfg(not(windows))] 5235 unimplemented!("Unsupported target OS"); 5236 } 5237 #[inline] 5238 pub unsafe fn glVertex2i(x: i32, y: i32) { 5239 #[cfg(windows)] 5240 { 5241 #[link(name = "windows")] 5242 extern "system" { 5243 fn glVertex2i(x: i32, y: i32); 5244 } 5245 ::std::mem::transmute(glVertex2i(::std::mem::transmute(x), ::std::mem::transmute(y))) 5246 } 5247 #[cfg(not(windows))] 5248 unimplemented!("Unsupported target OS"); 5249 } 5250 #[inline] 5251 pub unsafe fn glVertex2iv(v: *const i32) { 5252 #[cfg(windows)] 5253 { 5254 #[link(name = "windows")] 5255 extern "system" { 5256 fn glVertex2iv(v: *const i32); 5257 } 5258 ::std::mem::transmute(glVertex2iv(::std::mem::transmute(v))) 5259 } 5260 #[cfg(not(windows))] 5261 unimplemented!("Unsupported target OS"); 5262 } 5263 #[inline] 5264 pub unsafe fn glVertex2s(x: i16, y: i16) { 5265 #[cfg(windows)] 5266 { 5267 #[link(name = "windows")] 5268 extern "system" { 5269 fn glVertex2s(x: i16, y: i16); 5270 } 5271 ::std::mem::transmute(glVertex2s(::std::mem::transmute(x), ::std::mem::transmute(y))) 5272 } 5273 #[cfg(not(windows))] 5274 unimplemented!("Unsupported target OS"); 5275 } 5276 #[inline] 5277 pub unsafe fn glVertex2sv(v: *const i16) { 5278 #[cfg(windows)] 5279 { 5280 #[link(name = "windows")] 5281 extern "system" { 5282 fn glVertex2sv(v: *const i16); 5283 } 5284 ::std::mem::transmute(glVertex2sv(::std::mem::transmute(v))) 5285 } 5286 #[cfg(not(windows))] 5287 unimplemented!("Unsupported target OS"); 5288 } 5289 #[inline] 5290 pub unsafe fn glVertex3d(x: f64, y: f64, z: f64) { 5291 #[cfg(windows)] 5292 { 5293 #[link(name = "windows")] 5294 extern "system" { 5295 fn glVertex3d(x: f64, y: f64, z: f64); 5296 } 5297 ::std::mem::transmute(glVertex3d(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5298 } 5299 #[cfg(not(windows))] 5300 unimplemented!("Unsupported target OS"); 5301 } 5302 #[inline] 5303 pub unsafe fn glVertex3dv(v: *const f64) { 5304 #[cfg(windows)] 5305 { 5306 #[link(name = "windows")] 5307 extern "system" { 5308 fn glVertex3dv(v: *const f64); 5309 } 5310 ::std::mem::transmute(glVertex3dv(::std::mem::transmute(v))) 5311 } 5312 #[cfg(not(windows))] 5313 unimplemented!("Unsupported target OS"); 5314 } 5315 #[inline] 5316 pub unsafe fn glVertex3f(x: f32, y: f32, z: f32) { 5317 #[cfg(windows)] 5318 { 5319 #[link(name = "windows")] 5320 extern "system" { 5321 fn glVertex3f(x: f32, y: f32, z: f32); 5322 } 5323 ::std::mem::transmute(glVertex3f(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5324 } 5325 #[cfg(not(windows))] 5326 unimplemented!("Unsupported target OS"); 5327 } 5328 #[inline] 5329 pub unsafe fn glVertex3fv(v: *const f32) { 5330 #[cfg(windows)] 5331 { 5332 #[link(name = "windows")] 5333 extern "system" { 5334 fn glVertex3fv(v: *const f32); 5335 } 5336 ::std::mem::transmute(glVertex3fv(::std::mem::transmute(v))) 5337 } 5338 #[cfg(not(windows))] 5339 unimplemented!("Unsupported target OS"); 5340 } 5341 #[inline] 5342 pub unsafe fn glVertex3i(x: i32, y: i32, z: i32) { 5343 #[cfg(windows)] 5344 { 5345 #[link(name = "windows")] 5346 extern "system" { 5347 fn glVertex3i(x: i32, y: i32, z: i32); 5348 } 5349 ::std::mem::transmute(glVertex3i(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5350 } 5351 #[cfg(not(windows))] 5352 unimplemented!("Unsupported target OS"); 5353 } 5354 #[inline] 5355 pub unsafe fn glVertex3iv(v: *const i32) { 5356 #[cfg(windows)] 5357 { 5358 #[link(name = "windows")] 5359 extern "system" { 5360 fn glVertex3iv(v: *const i32); 5361 } 5362 ::std::mem::transmute(glVertex3iv(::std::mem::transmute(v))) 5363 } 5364 #[cfg(not(windows))] 5365 unimplemented!("Unsupported target OS"); 5366 } 5367 #[inline] 5368 pub unsafe fn glVertex3s(x: i16, y: i16, z: i16) { 5369 #[cfg(windows)] 5370 { 5371 #[link(name = "windows")] 5372 extern "system" { 5373 fn glVertex3s(x: i16, y: i16, z: i16); 5374 } 5375 ::std::mem::transmute(glVertex3s(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 5376 } 5377 #[cfg(not(windows))] 5378 unimplemented!("Unsupported target OS"); 5379 } 5380 #[inline] 5381 pub unsafe fn glVertex3sv(v: *const i16) { 5382 #[cfg(windows)] 5383 { 5384 #[link(name = "windows")] 5385 extern "system" { 5386 fn glVertex3sv(v: *const i16); 5387 } 5388 ::std::mem::transmute(glVertex3sv(::std::mem::transmute(v))) 5389 } 5390 #[cfg(not(windows))] 5391 unimplemented!("Unsupported target OS"); 5392 } 5393 #[inline] 5394 pub unsafe fn glVertex4d(x: f64, y: f64, z: f64, w: f64) { 5395 #[cfg(windows)] 5396 { 5397 #[link(name = "windows")] 5398 extern "system" { 5399 fn glVertex4d(x: f64, y: f64, z: f64, w: f64); 5400 } 5401 ::std::mem::transmute(glVertex4d(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 5402 } 5403 #[cfg(not(windows))] 5404 unimplemented!("Unsupported target OS"); 5405 } 5406 #[inline] 5407 pub unsafe fn glVertex4dv(v: *const f64) { 5408 #[cfg(windows)] 5409 { 5410 #[link(name = "windows")] 5411 extern "system" { 5412 fn glVertex4dv(v: *const f64); 5413 } 5414 ::std::mem::transmute(glVertex4dv(::std::mem::transmute(v))) 5415 } 5416 #[cfg(not(windows))] 5417 unimplemented!("Unsupported target OS"); 5418 } 5419 #[inline] 5420 pub unsafe fn glVertex4f(x: f32, y: f32, z: f32, w: f32) { 5421 #[cfg(windows)] 5422 { 5423 #[link(name = "windows")] 5424 extern "system" { 5425 fn glVertex4f(x: f32, y: f32, z: f32, w: f32); 5426 } 5427 ::std::mem::transmute(glVertex4f(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 5428 } 5429 #[cfg(not(windows))] 5430 unimplemented!("Unsupported target OS"); 5431 } 5432 #[inline] 5433 pub unsafe fn glVertex4fv(v: *const f32) { 5434 #[cfg(windows)] 5435 { 5436 #[link(name = "windows")] 5437 extern "system" { 5438 fn glVertex4fv(v: *const f32); 5439 } 5440 ::std::mem::transmute(glVertex4fv(::std::mem::transmute(v))) 5441 } 5442 #[cfg(not(windows))] 5443 unimplemented!("Unsupported target OS"); 5444 } 5445 #[inline] 5446 pub unsafe fn glVertex4i(x: i32, y: i32, z: i32, w: i32) { 5447 #[cfg(windows)] 5448 { 5449 #[link(name = "windows")] 5450 extern "system" { 5451 fn glVertex4i(x: i32, y: i32, z: i32, w: i32); 5452 } 5453 ::std::mem::transmute(glVertex4i(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 5454 } 5455 #[cfg(not(windows))] 5456 unimplemented!("Unsupported target OS"); 5457 } 5458 #[inline] 5459 pub unsafe fn glVertex4iv(v: *const i32) { 5460 #[cfg(windows)] 5461 { 5462 #[link(name = "windows")] 5463 extern "system" { 5464 fn glVertex4iv(v: *const i32); 5465 } 5466 ::std::mem::transmute(glVertex4iv(::std::mem::transmute(v))) 5467 } 5468 #[cfg(not(windows))] 5469 unimplemented!("Unsupported target OS"); 5470 } 5471 #[inline] 5472 pub unsafe fn glVertex4s(x: i16, y: i16, z: i16, w: i16) { 5473 #[cfg(windows)] 5474 { 5475 #[link(name = "windows")] 5476 extern "system" { 5477 fn glVertex4s(x: i16, y: i16, z: i16, w: i16); 5478 } 5479 ::std::mem::transmute(glVertex4s(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z), ::std::mem::transmute(w))) 5480 } 5481 #[cfg(not(windows))] 5482 unimplemented!("Unsupported target OS"); 5483 } 5484 #[inline] 5485 pub unsafe fn glVertex4sv(v: *const i16) { 5486 #[cfg(windows)] 5487 { 5488 #[link(name = "windows")] 5489 extern "system" { 5490 fn glVertex4sv(v: *const i16); 5491 } 5492 ::std::mem::transmute(glVertex4sv(::std::mem::transmute(v))) 5493 } 5494 #[cfg(not(windows))] 5495 unimplemented!("Unsupported target OS"); 5496 } 5497 #[inline] 5498 pub unsafe fn glVertexPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void) { 5499 #[cfg(windows)] 5500 { 5501 #[link(name = "windows")] 5502 extern "system" { 5503 fn glVertexPointer(size: i32, r#type: u32, stride: i32, pointer: *const ::std::ffi::c_void); 5504 } 5505 ::std::mem::transmute(glVertexPointer(::std::mem::transmute(size), ::std::mem::transmute(r#type), ::std::mem::transmute(stride), ::std::mem::transmute(pointer))) 5506 } 5507 #[cfg(not(windows))] 5508 unimplemented!("Unsupported target OS"); 5509 } 5510 #[inline] 5511 pub unsafe fn glViewport(x: i32, y: i32, width: i32, height: i32) { 5512 #[cfg(windows)] 5513 { 5514 #[link(name = "windows")] 5515 extern "system" { 5516 fn glViewport(x: i32, y: i32, width: i32, height: i32); 5517 } 5518 ::std::mem::transmute(glViewport(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height))) 5519 } 5520 #[cfg(not(windows))] 5521 unimplemented!("Unsupported target OS"); 5522 } 5523 #[inline] 5524 pub unsafe fn gluBeginCurve(nobj: *mut GLUnurbs) { 5525 #[cfg(windows)] 5526 { 5527 #[link(name = "windows")] 5528 extern "system" { 5529 fn gluBeginCurve(nobj: *mut GLUnurbs); 5530 } 5531 ::std::mem::transmute(gluBeginCurve(::std::mem::transmute(nobj))) 5532 } 5533 #[cfg(not(windows))] 5534 unimplemented!("Unsupported target OS"); 5535 } 5536 #[inline] 5537 pub unsafe fn gluBeginPolygon(tess: *mut GLUtesselator) { 5538 #[cfg(windows)] 5539 { 5540 #[link(name = "windows")] 5541 extern "system" { 5542 fn gluBeginPolygon(tess: *mut GLUtesselator); 5543 } 5544 ::std::mem::transmute(gluBeginPolygon(::std::mem::transmute(tess))) 5545 } 5546 #[cfg(not(windows))] 5547 unimplemented!("Unsupported target OS"); 5548 } 5549 #[inline] 5550 pub unsafe fn gluBeginSurface(nobj: *mut GLUnurbs) { 5551 #[cfg(windows)] 5552 { 5553 #[link(name = "windows")] 5554 extern "system" { 5555 fn gluBeginSurface(nobj: *mut GLUnurbs); 5556 } 5557 ::std::mem::transmute(gluBeginSurface(::std::mem::transmute(nobj))) 5558 } 5559 #[cfg(not(windows))] 5560 unimplemented!("Unsupported target OS"); 5561 } 5562 #[inline] 5563 pub unsafe fn gluBeginTrim(nobj: *mut GLUnurbs) { 5564 #[cfg(windows)] 5565 { 5566 #[link(name = "windows")] 5567 extern "system" { 5568 fn gluBeginTrim(nobj: *mut GLUnurbs); 5569 } 5570 ::std::mem::transmute(gluBeginTrim(::std::mem::transmute(nobj))) 5571 } 5572 #[cfg(not(windows))] 5573 unimplemented!("Unsupported target OS"); 5574 } 5575 #[inline] 5576 pub unsafe fn gluBuild1DMipmaps(target: u32, components: i32, width: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void) -> i32 { 5577 #[cfg(windows)] 5578 { 5579 #[link(name = "windows")] 5580 extern "system" { 5581 fn gluBuild1DMipmaps(target: u32, components: i32, width: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void) -> i32; 5582 } 5583 ::std::mem::transmute(gluBuild1DMipmaps(::std::mem::transmute(target), ::std::mem::transmute(components), ::std::mem::transmute(width), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(data))) 5584 } 5585 #[cfg(not(windows))] 5586 unimplemented!("Unsupported target OS"); 5587 } 5588 #[inline] 5589 pub unsafe fn gluBuild2DMipmaps(target: u32, components: i32, width: i32, height: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void) -> i32 { 5590 #[cfg(windows)] 5591 { 5592 #[link(name = "windows")] 5593 extern "system" { 5594 fn gluBuild2DMipmaps(target: u32, components: i32, width: i32, height: i32, format: u32, r#type: u32, data: *const ::std::ffi::c_void) -> i32; 5595 } 5596 ::std::mem::transmute(gluBuild2DMipmaps(::std::mem::transmute(target), ::std::mem::transmute(components), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(format), ::std::mem::transmute(r#type), ::std::mem::transmute(data))) 5597 } 5598 #[cfg(not(windows))] 5599 unimplemented!("Unsupported target OS"); 5600 } 5601 #[inline] 5602 pub unsafe fn gluCylinder(qobj: *mut GLUquadric, baseradius: f64, topradius: f64, height: f64, slices: i32, stacks: i32) { 5603 #[cfg(windows)] 5604 { 5605 #[link(name = "windows")] 5606 extern "system" { 5607 fn gluCylinder(qobj: *mut GLUquadric, baseradius: f64, topradius: f64, height: f64, slices: i32, stacks: i32); 5608 } 5609 ::std::mem::transmute(gluCylinder(::std::mem::transmute(qobj), ::std::mem::transmute(baseradius), ::std::mem::transmute(topradius), ::std::mem::transmute(height), ::std::mem::transmute(slices), ::std::mem::transmute(stacks))) 5610 } 5611 #[cfg(not(windows))] 5612 unimplemented!("Unsupported target OS"); 5613 } 5614 #[inline] 5615 pub unsafe fn gluDeleteNurbsRenderer(nobj: *mut GLUnurbs) { 5616 #[cfg(windows)] 5617 { 5618 #[link(name = "windows")] 5619 extern "system" { 5620 fn gluDeleteNurbsRenderer(nobj: *mut GLUnurbs); 5621 } 5622 ::std::mem::transmute(gluDeleteNurbsRenderer(::std::mem::transmute(nobj))) 5623 } 5624 #[cfg(not(windows))] 5625 unimplemented!("Unsupported target OS"); 5626 } 5627 #[inline] 5628 pub unsafe fn gluDeleteQuadric(state: *mut GLUquadric) { 5629 #[cfg(windows)] 5630 { 5631 #[link(name = "windows")] 5632 extern "system" { 5633 fn gluDeleteQuadric(state: *mut GLUquadric); 5634 } 5635 ::std::mem::transmute(gluDeleteQuadric(::std::mem::transmute(state))) 5636 } 5637 #[cfg(not(windows))] 5638 unimplemented!("Unsupported target OS"); 5639 } 5640 #[inline] 5641 pub unsafe fn gluDeleteTess(tess: *mut GLUtesselator) { 5642 #[cfg(windows)] 5643 { 5644 #[link(name = "windows")] 5645 extern "system" { 5646 fn gluDeleteTess(tess: *mut GLUtesselator); 5647 } 5648 ::std::mem::transmute(gluDeleteTess(::std::mem::transmute(tess))) 5649 } 5650 #[cfg(not(windows))] 5651 unimplemented!("Unsupported target OS"); 5652 } 5653 #[inline] 5654 pub unsafe fn gluDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32) { 5655 #[cfg(windows)] 5656 { 5657 #[link(name = "windows")] 5658 extern "system" { 5659 fn gluDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32); 5660 } 5661 ::std::mem::transmute(gluDisk(::std::mem::transmute(qobj), ::std::mem::transmute(innerradius), ::std::mem::transmute(outerradius), ::std::mem::transmute(slices), ::std::mem::transmute(loops))) 5662 } 5663 #[cfg(not(windows))] 5664 unimplemented!("Unsupported target OS"); 5665 } 5666 #[inline] 5667 pub unsafe fn gluEndCurve(nobj: *mut GLUnurbs) { 5668 #[cfg(windows)] 5669 { 5670 #[link(name = "windows")] 5671 extern "system" { 5672 fn gluEndCurve(nobj: *mut GLUnurbs); 5673 } 5674 ::std::mem::transmute(gluEndCurve(::std::mem::transmute(nobj))) 5675 } 5676 #[cfg(not(windows))] 5677 unimplemented!("Unsupported target OS"); 5678 } 5679 #[inline] 5680 pub unsafe fn gluEndPolygon(tess: *mut GLUtesselator) { 5681 #[cfg(windows)] 5682 { 5683 #[link(name = "windows")] 5684 extern "system" { 5685 fn gluEndPolygon(tess: *mut GLUtesselator); 5686 } 5687 ::std::mem::transmute(gluEndPolygon(::std::mem::transmute(tess))) 5688 } 5689 #[cfg(not(windows))] 5690 unimplemented!("Unsupported target OS"); 5691 } 5692 #[inline] 5693 pub unsafe fn gluEndSurface(nobj: *mut GLUnurbs) { 5694 #[cfg(windows)] 5695 { 5696 #[link(name = "windows")] 5697 extern "system" { 5698 fn gluEndSurface(nobj: *mut GLUnurbs); 5699 } 5700 ::std::mem::transmute(gluEndSurface(::std::mem::transmute(nobj))) 5701 } 5702 #[cfg(not(windows))] 5703 unimplemented!("Unsupported target OS"); 5704 } 5705 #[inline] 5706 pub unsafe fn gluEndTrim(nobj: *mut GLUnurbs) { 5707 #[cfg(windows)] 5708 { 5709 #[link(name = "windows")] 5710 extern "system" { 5711 fn gluEndTrim(nobj: *mut GLUnurbs); 5712 } 5713 ::std::mem::transmute(gluEndTrim(::std::mem::transmute(nobj))) 5714 } 5715 #[cfg(not(windows))] 5716 unimplemented!("Unsupported target OS"); 5717 } 5718 #[inline] 5719 pub unsafe fn gluErrorString(errcode: u32) -> *mut u8 { 5720 #[cfg(windows)] 5721 { 5722 #[link(name = "windows")] 5723 extern "system" { 5724 fn gluErrorString(errcode: u32) -> *mut u8; 5725 } 5726 ::std::mem::transmute(gluErrorString(::std::mem::transmute(errcode))) 5727 } 5728 #[cfg(not(windows))] 5729 unimplemented!("Unsupported target OS"); 5730 } 5731 #[cfg(feature = "Win32_Foundation")] 5732 #[inline] 5733 pub unsafe fn gluErrorUnicodeStringEXT(errcode: u32) -> super::super::Foundation::PWSTR { 5734 #[cfg(windows)] 5735 { 5736 #[link(name = "windows")] 5737 extern "system" { 5738 fn gluErrorUnicodeStringEXT(errcode: u32) -> super::super::Foundation::PWSTR; 5739 } 5740 ::std::mem::transmute(gluErrorUnicodeStringEXT(::std::mem::transmute(errcode))) 5741 } 5742 #[cfg(not(windows))] 5743 unimplemented!("Unsupported target OS"); 5744 } 5745 #[inline] 5746 pub unsafe fn gluGetNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: *mut f32) { 5747 #[cfg(windows)] 5748 { 5749 #[link(name = "windows")] 5750 extern "system" { 5751 fn gluGetNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: *mut f32); 5752 } 5753 ::std::mem::transmute(gluGetNurbsProperty(::std::mem::transmute(nobj), ::std::mem::transmute(property), ::std::mem::transmute(value))) 5754 } 5755 #[cfg(not(windows))] 5756 unimplemented!("Unsupported target OS"); 5757 } 5758 #[inline] 5759 pub unsafe fn gluGetString(name: u32) -> *mut u8 { 5760 #[cfg(windows)] 5761 { 5762 #[link(name = "windows")] 5763 extern "system" { 5764 fn gluGetString(name: u32) -> *mut u8; 5765 } 5766 ::std::mem::transmute(gluGetString(::std::mem::transmute(name))) 5767 } 5768 #[cfg(not(windows))] 5769 unimplemented!("Unsupported target OS"); 5770 } 5771 #[inline] 5772 pub unsafe fn gluGetTessProperty(tess: *mut GLUtesselator, which: u32, value: *mut f64) { 5773 #[cfg(windows)] 5774 { 5775 #[link(name = "windows")] 5776 extern "system" { 5777 fn gluGetTessProperty(tess: *mut GLUtesselator, which: u32, value: *mut f64); 5778 } 5779 ::std::mem::transmute(gluGetTessProperty(::std::mem::transmute(tess), ::std::mem::transmute(which), ::std::mem::transmute(value))) 5780 } 5781 #[cfg(not(windows))] 5782 unimplemented!("Unsupported target OS"); 5783 } 5784 #[inline] 5785 pub unsafe fn gluLoadSamplingMatrices(nobj: *mut GLUnurbs, modelmatrix: *const f32, projmatrix: *const f32, viewport: *const i32) { 5786 #[cfg(windows)] 5787 { 5788 #[link(name = "windows")] 5789 extern "system" { 5790 fn gluLoadSamplingMatrices(nobj: *mut GLUnurbs, modelmatrix: *const f32, projmatrix: *const f32, viewport: *const i32); 5791 } 5792 ::std::mem::transmute(gluLoadSamplingMatrices(::std::mem::transmute(nobj), ::std::mem::transmute(modelmatrix), ::std::mem::transmute(projmatrix), ::std::mem::transmute(viewport))) 5793 } 5794 #[cfg(not(windows))] 5795 unimplemented!("Unsupported target OS"); 5796 } 5797 #[inline] 5798 pub unsafe fn gluLookAt(eyex: f64, eyey: f64, eyez: f64, centerx: f64, centery: f64, centerz: f64, upx: f64, upy: f64, upz: f64) { 5799 #[cfg(windows)] 5800 { 5801 #[link(name = "windows")] 5802 extern "system" { 5803 fn gluLookAt(eyex: f64, eyey: f64, eyez: f64, centerx: f64, centery: f64, centerz: f64, upx: f64, upy: f64, upz: f64); 5804 } 5805 ::std::mem::transmute(gluLookAt(::std::mem::transmute(eyex), ::std::mem::transmute(eyey), ::std::mem::transmute(eyez), ::std::mem::transmute(centerx), ::std::mem::transmute(centery), ::std::mem::transmute(centerz), ::std::mem::transmute(upx), ::std::mem::transmute(upy), ::std::mem::transmute(upz))) 5806 } 5807 #[cfg(not(windows))] 5808 unimplemented!("Unsupported target OS"); 5809 } 5810 #[inline] 5811 pub unsafe fn gluNewNurbsRenderer() -> *mut GLUnurbs { 5812 #[cfg(windows)] 5813 { 5814 #[link(name = "windows")] 5815 extern "system" { 5816 fn gluNewNurbsRenderer() -> *mut GLUnurbs; 5817 } 5818 ::std::mem::transmute(gluNewNurbsRenderer()) 5819 } 5820 #[cfg(not(windows))] 5821 unimplemented!("Unsupported target OS"); 5822 } 5823 #[inline] 5824 pub unsafe fn gluNewQuadric() -> *mut GLUquadric { 5825 #[cfg(windows)] 5826 { 5827 #[link(name = "windows")] 5828 extern "system" { 5829 fn gluNewQuadric() -> *mut GLUquadric; 5830 } 5831 ::std::mem::transmute(gluNewQuadric()) 5832 } 5833 #[cfg(not(windows))] 5834 unimplemented!("Unsupported target OS"); 5835 } 5836 #[inline] 5837 pub unsafe fn gluNewTess() -> *mut GLUtesselator { 5838 #[cfg(windows)] 5839 { 5840 #[link(name = "windows")] 5841 extern "system" { 5842 fn gluNewTess() -> *mut GLUtesselator; 5843 } 5844 ::std::mem::transmute(gluNewTess()) 5845 } 5846 #[cfg(not(windows))] 5847 unimplemented!("Unsupported target OS"); 5848 } 5849 #[inline] 5850 pub unsafe fn gluNextContour(tess: *mut GLUtesselator, r#type: u32) { 5851 #[cfg(windows)] 5852 { 5853 #[link(name = "windows")] 5854 extern "system" { 5855 fn gluNextContour(tess: *mut GLUtesselator, r#type: u32); 5856 } 5857 ::std::mem::transmute(gluNextContour(::std::mem::transmute(tess), ::std::mem::transmute(r#type))) 5858 } 5859 #[cfg(not(windows))] 5860 unimplemented!("Unsupported target OS"); 5861 } 5862 #[inline] 5863 pub unsafe fn gluNurbsCallback(nobj: *mut GLUnurbs, which: u32, r#fn: isize) { 5864 #[cfg(windows)] 5865 { 5866 #[link(name = "windows")] 5867 extern "system" { 5868 fn gluNurbsCallback(nobj: *mut GLUnurbs, which: u32, r#fn: isize); 5869 } 5870 ::std::mem::transmute(gluNurbsCallback(::std::mem::transmute(nobj), ::std::mem::transmute(which), ::std::mem::transmute(r#fn))) 5871 } 5872 #[cfg(not(windows))] 5873 unimplemented!("Unsupported target OS"); 5874 } 5875 #[inline] 5876 pub unsafe fn gluNurbsCurve(nobj: *mut GLUnurbs, nknots: i32, knot: *mut f32, stride: i32, ctlarray: *mut f32, order: i32, r#type: u32) { 5877 #[cfg(windows)] 5878 { 5879 #[link(name = "windows")] 5880 extern "system" { 5881 fn gluNurbsCurve(nobj: *mut GLUnurbs, nknots: i32, knot: *mut f32, stride: i32, ctlarray: *mut f32, order: i32, r#type: u32); 5882 } 5883 ::std::mem::transmute(gluNurbsCurve(::std::mem::transmute(nobj), ::std::mem::transmute(nknots), ::std::mem::transmute(knot), ::std::mem::transmute(stride), ::std::mem::transmute(ctlarray), ::std::mem::transmute(order), ::std::mem::transmute(r#type))) 5884 } 5885 #[cfg(not(windows))] 5886 unimplemented!("Unsupported target OS"); 5887 } 5888 #[inline] 5889 pub unsafe fn gluNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: f32) { 5890 #[cfg(windows)] 5891 { 5892 #[link(name = "windows")] 5893 extern "system" { 5894 fn gluNurbsProperty(nobj: *mut GLUnurbs, property: u32, value: f32); 5895 } 5896 ::std::mem::transmute(gluNurbsProperty(::std::mem::transmute(nobj), ::std::mem::transmute(property), ::std::mem::transmute(value))) 5897 } 5898 #[cfg(not(windows))] 5899 unimplemented!("Unsupported target OS"); 5900 } 5901 #[inline] 5902 pub unsafe fn gluNurbsSurface(nobj: *mut GLUnurbs, sknot_count: i32, sknot: *mut f32, tknot_count: i32, tknot: *mut f32, s_stride: i32, t_stride: i32, ctlarray: *mut f32, sorder: i32, torder: i32, r#type: u32) { 5903 #[cfg(windows)] 5904 { 5905 #[link(name = "windows")] 5906 extern "system" { 5907 fn gluNurbsSurface(nobj: *mut GLUnurbs, sknot_count: i32, sknot: *mut f32, tknot_count: i32, tknot: *mut f32, s_stride: i32, t_stride: i32, ctlarray: *mut f32, sorder: i32, torder: i32, r#type: u32); 5908 } 5909 ::std::mem::transmute(gluNurbsSurface( 5910 ::std::mem::transmute(nobj), 5911 ::std::mem::transmute(sknot_count), 5912 ::std::mem::transmute(sknot), 5913 ::std::mem::transmute(tknot_count), 5914 ::std::mem::transmute(tknot), 5915 ::std::mem::transmute(s_stride), 5916 ::std::mem::transmute(t_stride), 5917 ::std::mem::transmute(ctlarray), 5918 ::std::mem::transmute(sorder), 5919 ::std::mem::transmute(torder), 5920 ::std::mem::transmute(r#type), 5921 )) 5922 } 5923 #[cfg(not(windows))] 5924 unimplemented!("Unsupported target OS"); 5925 } 5926 #[inline] 5927 pub unsafe fn gluOrtho2D(left: f64, right: f64, bottom: f64, top: f64) { 5928 #[cfg(windows)] 5929 { 5930 #[link(name = "windows")] 5931 extern "system" { 5932 fn gluOrtho2D(left: f64, right: f64, bottom: f64, top: f64); 5933 } 5934 ::std::mem::transmute(gluOrtho2D(::std::mem::transmute(left), ::std::mem::transmute(right), ::std::mem::transmute(bottom), ::std::mem::transmute(top))) 5935 } 5936 #[cfg(not(windows))] 5937 unimplemented!("Unsupported target OS"); 5938 } 5939 #[inline] 5940 pub unsafe fn gluPartialDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32, startangle: f64, sweepangle: f64) { 5941 #[cfg(windows)] 5942 { 5943 #[link(name = "windows")] 5944 extern "system" { 5945 fn gluPartialDisk(qobj: *mut GLUquadric, innerradius: f64, outerradius: f64, slices: i32, loops: i32, startangle: f64, sweepangle: f64); 5946 } 5947 ::std::mem::transmute(gluPartialDisk(::std::mem::transmute(qobj), ::std::mem::transmute(innerradius), ::std::mem::transmute(outerradius), ::std::mem::transmute(slices), ::std::mem::transmute(loops), ::std::mem::transmute(startangle), ::std::mem::transmute(sweepangle))) 5948 } 5949 #[cfg(not(windows))] 5950 unimplemented!("Unsupported target OS"); 5951 } 5952 #[inline] 5953 pub unsafe fn gluPerspective(fovy: f64, aspect: f64, znear: f64, zfar: f64) { 5954 #[cfg(windows)] 5955 { 5956 #[link(name = "windows")] 5957 extern "system" { 5958 fn gluPerspective(fovy: f64, aspect: f64, znear: f64, zfar: f64); 5959 } 5960 ::std::mem::transmute(gluPerspective(::std::mem::transmute(fovy), ::std::mem::transmute(aspect), ::std::mem::transmute(znear), ::std::mem::transmute(zfar))) 5961 } 5962 #[cfg(not(windows))] 5963 unimplemented!("Unsupported target OS"); 5964 } 5965 #[inline] 5966 pub unsafe fn gluPickMatrix(x: f64, y: f64, width: f64, height: f64, viewport: *mut i32) { 5967 #[cfg(windows)] 5968 { 5969 #[link(name = "windows")] 5970 extern "system" { 5971 fn gluPickMatrix(x: f64, y: f64, width: f64, height: f64, viewport: *mut i32); 5972 } 5973 ::std::mem::transmute(gluPickMatrix(::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(width), ::std::mem::transmute(height), ::std::mem::transmute(viewport))) 5974 } 5975 #[cfg(not(windows))] 5976 unimplemented!("Unsupported target OS"); 5977 } 5978 #[inline] 5979 pub unsafe fn gluProject(objx: f64, objy: f64, objz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, winx: *mut f64, winy: *mut f64, winz: *mut f64) -> i32 { 5980 #[cfg(windows)] 5981 { 5982 #[link(name = "windows")] 5983 extern "system" { 5984 fn gluProject(objx: f64, objy: f64, objz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, winx: *mut f64, winy: *mut f64, winz: *mut f64) -> i32; 5985 } 5986 ::std::mem::transmute(gluProject(::std::mem::transmute(objx), ::std::mem::transmute(objy), ::std::mem::transmute(objz), ::std::mem::transmute(modelmatrix), ::std::mem::transmute(projmatrix), ::std::mem::transmute(viewport), ::std::mem::transmute(winx), ::std::mem::transmute(winy), ::std::mem::transmute(winz))) 5987 } 5988 #[cfg(not(windows))] 5989 unimplemented!("Unsupported target OS"); 5990 } 5991 #[inline] 5992 pub unsafe fn gluPwlCurve(nobj: *mut GLUnurbs, count: i32, array: *mut f32, stride: i32, r#type: u32) { 5993 #[cfg(windows)] 5994 { 5995 #[link(name = "windows")] 5996 extern "system" { 5997 fn gluPwlCurve(nobj: *mut GLUnurbs, count: i32, array: *mut f32, stride: i32, r#type: u32); 5998 } 5999 ::std::mem::transmute(gluPwlCurve(::std::mem::transmute(nobj), ::std::mem::transmute(count), ::std::mem::transmute(array), ::std::mem::transmute(stride), ::std::mem::transmute(r#type))) 6000 } 6001 #[cfg(not(windows))] 6002 unimplemented!("Unsupported target OS"); 6003 } 6004 #[inline] 6005 pub unsafe fn gluQuadricCallback(qobj: *mut GLUquadric, which: u32, r#fn: isize) { 6006 #[cfg(windows)] 6007 { 6008 #[link(name = "windows")] 6009 extern "system" { 6010 fn gluQuadricCallback(qobj: *mut GLUquadric, which: u32, r#fn: isize); 6011 } 6012 ::std::mem::transmute(gluQuadricCallback(::std::mem::transmute(qobj), ::std::mem::transmute(which), ::std::mem::transmute(r#fn))) 6013 } 6014 #[cfg(not(windows))] 6015 unimplemented!("Unsupported target OS"); 6016 } 6017 #[inline] 6018 pub unsafe fn gluQuadricDrawStyle(quadobject: *mut GLUquadric, drawstyle: u32) { 6019 #[cfg(windows)] 6020 { 6021 #[link(name = "windows")] 6022 extern "system" { 6023 fn gluQuadricDrawStyle(quadobject: *mut GLUquadric, drawstyle: u32); 6024 } 6025 ::std::mem::transmute(gluQuadricDrawStyle(::std::mem::transmute(quadobject), ::std::mem::transmute(drawstyle))) 6026 } 6027 #[cfg(not(windows))] 6028 unimplemented!("Unsupported target OS"); 6029 } 6030 #[inline] 6031 pub unsafe fn gluQuadricNormals(quadobject: *mut GLUquadric, normals: u32) { 6032 #[cfg(windows)] 6033 { 6034 #[link(name = "windows")] 6035 extern "system" { 6036 fn gluQuadricNormals(quadobject: *mut GLUquadric, normals: u32); 6037 } 6038 ::std::mem::transmute(gluQuadricNormals(::std::mem::transmute(quadobject), ::std::mem::transmute(normals))) 6039 } 6040 #[cfg(not(windows))] 6041 unimplemented!("Unsupported target OS"); 6042 } 6043 #[inline] 6044 pub unsafe fn gluQuadricOrientation(quadobject: *mut GLUquadric, orientation: u32) { 6045 #[cfg(windows)] 6046 { 6047 #[link(name = "windows")] 6048 extern "system" { 6049 fn gluQuadricOrientation(quadobject: *mut GLUquadric, orientation: u32); 6050 } 6051 ::std::mem::transmute(gluQuadricOrientation(::std::mem::transmute(quadobject), ::std::mem::transmute(orientation))) 6052 } 6053 #[cfg(not(windows))] 6054 unimplemented!("Unsupported target OS"); 6055 } 6056 #[inline] 6057 pub unsafe fn gluQuadricTexture(quadobject: *mut GLUquadric, texturecoords: u8) { 6058 #[cfg(windows)] 6059 { 6060 #[link(name = "windows")] 6061 extern "system" { 6062 fn gluQuadricTexture(quadobject: *mut GLUquadric, texturecoords: u8); 6063 } 6064 ::std::mem::transmute(gluQuadricTexture(::std::mem::transmute(quadobject), ::std::mem::transmute(texturecoords))) 6065 } 6066 #[cfg(not(windows))] 6067 unimplemented!("Unsupported target OS"); 6068 } 6069 #[inline] 6070 pub unsafe fn gluScaleImage(format: u32, widthin: i32, heightin: i32, typein: u32, datain: *const ::std::ffi::c_void, widthout: i32, heightout: i32, typeout: u32, dataout: *mut ::std::ffi::c_void) -> i32 { 6071 #[cfg(windows)] 6072 { 6073 #[link(name = "windows")] 6074 extern "system" { 6075 fn gluScaleImage(format: u32, widthin: i32, heightin: i32, typein: u32, datain: *const ::std::ffi::c_void, widthout: i32, heightout: i32, typeout: u32, dataout: *mut ::std::ffi::c_void) -> i32; 6076 } 6077 ::std::mem::transmute(gluScaleImage( 6078 ::std::mem::transmute(format), 6079 ::std::mem::transmute(widthin), 6080 ::std::mem::transmute(heightin), 6081 ::std::mem::transmute(typein), 6082 ::std::mem::transmute(datain), 6083 ::std::mem::transmute(widthout), 6084 ::std::mem::transmute(heightout), 6085 ::std::mem::transmute(typeout), 6086 ::std::mem::transmute(dataout), 6087 )) 6088 } 6089 #[cfg(not(windows))] 6090 unimplemented!("Unsupported target OS"); 6091 } 6092 #[inline] 6093 pub unsafe fn gluSphere(qobj: *mut GLUquadric, radius: f64, slices: i32, stacks: i32) { 6094 #[cfg(windows)] 6095 { 6096 #[link(name = "windows")] 6097 extern "system" { 6098 fn gluSphere(qobj: *mut GLUquadric, radius: f64, slices: i32, stacks: i32); 6099 } 6100 ::std::mem::transmute(gluSphere(::std::mem::transmute(qobj), ::std::mem::transmute(radius), ::std::mem::transmute(slices), ::std::mem::transmute(stacks))) 6101 } 6102 #[cfg(not(windows))] 6103 unimplemented!("Unsupported target OS"); 6104 } 6105 #[inline] 6106 pub unsafe fn gluTessBeginContour(tess: *mut GLUtesselator) { 6107 #[cfg(windows)] 6108 { 6109 #[link(name = "windows")] 6110 extern "system" { 6111 fn gluTessBeginContour(tess: *mut GLUtesselator); 6112 } 6113 ::std::mem::transmute(gluTessBeginContour(::std::mem::transmute(tess))) 6114 } 6115 #[cfg(not(windows))] 6116 unimplemented!("Unsupported target OS"); 6117 } 6118 #[inline] 6119 pub unsafe fn gluTessBeginPolygon(tess: *mut GLUtesselator, polygon_data: *mut ::std::ffi::c_void) { 6120 #[cfg(windows)] 6121 { 6122 #[link(name = "windows")] 6123 extern "system" { 6124 fn gluTessBeginPolygon(tess: *mut GLUtesselator, polygon_data: *mut ::std::ffi::c_void); 6125 } 6126 ::std::mem::transmute(gluTessBeginPolygon(::std::mem::transmute(tess), ::std::mem::transmute(polygon_data))) 6127 } 6128 #[cfg(not(windows))] 6129 unimplemented!("Unsupported target OS"); 6130 } 6131 #[inline] 6132 pub unsafe fn gluTessCallback(tess: *mut GLUtesselator, which: u32, r#fn: isize) { 6133 #[cfg(windows)] 6134 { 6135 #[link(name = "windows")] 6136 extern "system" { 6137 fn gluTessCallback(tess: *mut GLUtesselator, which: u32, r#fn: isize); 6138 } 6139 ::std::mem::transmute(gluTessCallback(::std::mem::transmute(tess), ::std::mem::transmute(which), ::std::mem::transmute(r#fn))) 6140 } 6141 #[cfg(not(windows))] 6142 unimplemented!("Unsupported target OS"); 6143 } 6144 #[inline] 6145 pub unsafe fn gluTessEndContour(tess: *mut GLUtesselator) { 6146 #[cfg(windows)] 6147 { 6148 #[link(name = "windows")] 6149 extern "system" { 6150 fn gluTessEndContour(tess: *mut GLUtesselator); 6151 } 6152 ::std::mem::transmute(gluTessEndContour(::std::mem::transmute(tess))) 6153 } 6154 #[cfg(not(windows))] 6155 unimplemented!("Unsupported target OS"); 6156 } 6157 #[inline] 6158 pub unsafe fn gluTessEndPolygon(tess: *mut GLUtesselator) { 6159 #[cfg(windows)] 6160 { 6161 #[link(name = "windows")] 6162 extern "system" { 6163 fn gluTessEndPolygon(tess: *mut GLUtesselator); 6164 } 6165 ::std::mem::transmute(gluTessEndPolygon(::std::mem::transmute(tess))) 6166 } 6167 #[cfg(not(windows))] 6168 unimplemented!("Unsupported target OS"); 6169 } 6170 #[inline] 6171 pub unsafe fn gluTessNormal(tess: *mut GLUtesselator, x: f64, y: f64, z: f64) { 6172 #[cfg(windows)] 6173 { 6174 #[link(name = "windows")] 6175 extern "system" { 6176 fn gluTessNormal(tess: *mut GLUtesselator, x: f64, y: f64, z: f64); 6177 } 6178 ::std::mem::transmute(gluTessNormal(::std::mem::transmute(tess), ::std::mem::transmute(x), ::std::mem::transmute(y), ::std::mem::transmute(z))) 6179 } 6180 #[cfg(not(windows))] 6181 unimplemented!("Unsupported target OS"); 6182 } 6183 #[inline] 6184 pub unsafe fn gluTessProperty(tess: *mut GLUtesselator, which: u32, value: f64) { 6185 #[cfg(windows)] 6186 { 6187 #[link(name = "windows")] 6188 extern "system" { 6189 fn gluTessProperty(tess: *mut GLUtesselator, which: u32, value: f64); 6190 } 6191 ::std::mem::transmute(gluTessProperty(::std::mem::transmute(tess), ::std::mem::transmute(which), ::std::mem::transmute(value))) 6192 } 6193 #[cfg(not(windows))] 6194 unimplemented!("Unsupported target OS"); 6195 } 6196 #[inline] 6197 pub unsafe fn gluTessVertex(tess: *mut GLUtesselator, coords: *mut f64, data: *mut ::std::ffi::c_void) { 6198 #[cfg(windows)] 6199 { 6200 #[link(name = "windows")] 6201 extern "system" { 6202 fn gluTessVertex(tess: *mut GLUtesselator, coords: *mut f64, data: *mut ::std::ffi::c_void); 6203 } 6204 ::std::mem::transmute(gluTessVertex(::std::mem::transmute(tess), ::std::mem::transmute(coords), ::std::mem::transmute(data))) 6205 } 6206 #[cfg(not(windows))] 6207 unimplemented!("Unsupported target OS"); 6208 } 6209 #[inline] 6210 pub unsafe fn gluUnProject(winx: f64, winy: f64, winz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, objx: *mut f64, objy: *mut f64, objz: *mut f64) -> i32 { 6211 #[cfg(windows)] 6212 { 6213 #[link(name = "windows")] 6214 extern "system" { 6215 fn gluUnProject(winx: f64, winy: f64, winz: f64, modelmatrix: *const f64, projmatrix: *const f64, viewport: *const i32, objx: *mut f64, objy: *mut f64, objz: *mut f64) -> i32; 6216 } 6217 ::std::mem::transmute(gluUnProject(::std::mem::transmute(winx), ::std::mem::transmute(winy), ::std::mem::transmute(winz), ::std::mem::transmute(modelmatrix), ::std::mem::transmute(projmatrix), ::std::mem::transmute(viewport), ::std::mem::transmute(objx), ::std::mem::transmute(objy), ::std::mem::transmute(objz))) 6218 } 6219 #[cfg(not(windows))] 6220 unimplemented!("Unsupported target OS"); 6221 } 6222 #[cfg(feature = "Win32_Foundation")] 6223 #[inline] 6224 pub unsafe fn wglCopyContext<'a, Param0: ::windows::runtime::IntoParam<'a, HGLRC>, Param1: ::windows::runtime::IntoParam<'a, HGLRC>>(param0: Param0, param1: Param1, param2: u32) -> super::super::Foundation::BOOL { 6225 #[cfg(windows)] 6226 { 6227 #[link(name = "windows")] 6228 extern "system" { 6229 fn wglCopyContext(param0: HGLRC, param1: HGLRC, param2: u32) -> super::super::Foundation::BOOL; 6230 } 6231 ::std::mem::transmute(wglCopyContext(param0.into_param().abi(), param1.into_param().abi(), ::std::mem::transmute(param2))) 6232 } 6233 #[cfg(not(windows))] 6234 unimplemented!("Unsupported target OS"); 6235 } 6236 #[cfg(feature = "Win32_Graphics_Gdi")] 6237 #[inline] 6238 pub unsafe fn wglCreateContext<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0) -> HGLRC { 6239 #[cfg(windows)] 6240 { 6241 #[link(name = "windows")] 6242 extern "system" { 6243 fn wglCreateContext(param0: super::Gdi::HDC) -> HGLRC; 6244 } 6245 ::std::mem::transmute(wglCreateContext(param0.into_param().abi())) 6246 } 6247 #[cfg(not(windows))] 6248 unimplemented!("Unsupported target OS"); 6249 } 6250 #[cfg(feature = "Win32_Graphics_Gdi")] 6251 #[inline] 6252 pub unsafe fn wglCreateLayerContext<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: i32) -> HGLRC { 6253 #[cfg(windows)] 6254 { 6255 #[link(name = "windows")] 6256 extern "system" { 6257 fn wglCreateLayerContext(param0: super::Gdi::HDC, param1: i32) -> HGLRC; 6258 } 6259 ::std::mem::transmute(wglCreateLayerContext(param0.into_param().abi(), ::std::mem::transmute(param1))) 6260 } 6261 #[cfg(not(windows))] 6262 unimplemented!("Unsupported target OS"); 6263 } 6264 #[cfg(feature = "Win32_Foundation")] 6265 #[inline] 6266 pub unsafe fn wglDeleteContext<'a, Param0: ::windows::runtime::IntoParam<'a, HGLRC>>(param0: Param0) -> super::super::Foundation::BOOL { 6267 #[cfg(windows)] 6268 { 6269 #[link(name = "windows")] 6270 extern "system" { 6271 fn wglDeleteContext(param0: HGLRC) -> super::super::Foundation::BOOL; 6272 } 6273 ::std::mem::transmute(wglDeleteContext(param0.into_param().abi())) 6274 } 6275 #[cfg(not(windows))] 6276 unimplemented!("Unsupported target OS"); 6277 } 6278 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6279 #[inline] 6280 pub unsafe fn wglDescribeLayerPlane<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation::BOOL { 6281 #[cfg(windows)] 6282 { 6283 #[link(name = "windows")] 6284 extern "system" { 6285 fn wglDescribeLayerPlane(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: u32, param4: *mut LAYERPLANEDESCRIPTOR) -> super::super::Foundation::BOOL; 6286 } 6287 ::std::mem::transmute(wglDescribeLayerPlane(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3), ::std::mem::transmute(param4))) 6288 } 6289 #[cfg(not(windows))] 6290 unimplemented!("Unsupported target OS"); 6291 } 6292 #[inline] 6293 pub unsafe fn wglGetCurrentContext() -> HGLRC { 6294 #[cfg(windows)] 6295 { 6296 #[link(name = "windows")] 6297 extern "system" { 6298 fn wglGetCurrentContext() -> HGLRC; 6299 } 6300 ::std::mem::transmute(wglGetCurrentContext()) 6301 } 6302 #[cfg(not(windows))] 6303 unimplemented!("Unsupported target OS"); 6304 } 6305 #[cfg(feature = "Win32_Graphics_Gdi")] 6306 #[inline] 6307 pub unsafe fn wglGetCurrentDC() -> super::Gdi::HDC { 6308 #[cfg(windows)] 6309 { 6310 #[link(name = "windows")] 6311 extern "system" { 6312 fn wglGetCurrentDC() -> super::Gdi::HDC; 6313 } 6314 ::std::mem::transmute(wglGetCurrentDC()) 6315 } 6316 #[cfg(not(windows))] 6317 unimplemented!("Unsupported target OS"); 6318 } 6319 #[cfg(feature = "Win32_Graphics_Gdi")] 6320 #[inline] 6321 pub unsafe fn wglGetLayerPaletteEntries<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: i32, param2: i32, param3: i32, param4: *mut u32) -> i32 { 6322 #[cfg(windows)] 6323 { 6324 #[link(name = "windows")] 6325 extern "system" { 6326 fn wglGetLayerPaletteEntries(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: i32, param4: *mut u32) -> i32; 6327 } 6328 ::std::mem::transmute(wglGetLayerPaletteEntries(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3), ::std::mem::transmute(param4))) 6329 } 6330 #[cfg(not(windows))] 6331 unimplemented!("Unsupported target OS"); 6332 } 6333 #[cfg(feature = "Win32_Foundation")] 6334 #[inline] 6335 pub unsafe fn wglGetProcAddress<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PSTR>>(param0: Param0) -> ::std::option::Option<super::super::Foundation::PROC> { 6336 #[cfg(windows)] 6337 { 6338 #[link(name = "windows")] 6339 extern "system" { 6340 fn wglGetProcAddress(param0: super::super::Foundation::PSTR) -> ::std::option::Option<super::super::Foundation::PROC>; 6341 } 6342 ::std::mem::transmute(wglGetProcAddress(param0.into_param().abi())) 6343 } 6344 #[cfg(not(windows))] 6345 unimplemented!("Unsupported target OS"); 6346 } 6347 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6348 #[inline] 6349 pub unsafe fn wglMakeCurrent<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>, Param1: ::windows::runtime::IntoParam<'a, HGLRC>>(param0: Param0, param1: Param1) -> super::super::Foundation::BOOL { 6350 #[cfg(windows)] 6351 { 6352 #[link(name = "windows")] 6353 extern "system" { 6354 fn wglMakeCurrent(param0: super::Gdi::HDC, param1: HGLRC) -> super::super::Foundation::BOOL; 6355 } 6356 ::std::mem::transmute(wglMakeCurrent(param0.into_param().abi(), param1.into_param().abi())) 6357 } 6358 #[cfg(not(windows))] 6359 unimplemented!("Unsupported target OS"); 6360 } 6361 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6362 #[inline] 6363 pub unsafe fn wglRealizeLayerPalette<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>, Param2: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(param0: Param0, param1: i32, param2: Param2) -> super::super::Foundation::BOOL { 6364 #[cfg(windows)] 6365 { 6366 #[link(name = "windows")] 6367 extern "system" { 6368 fn wglRealizeLayerPalette(param0: super::Gdi::HDC, param1: i32, param2: super::super::Foundation::BOOL) -> super::super::Foundation::BOOL; 6369 } 6370 ::std::mem::transmute(wglRealizeLayerPalette(param0.into_param().abi(), ::std::mem::transmute(param1), param2.into_param().abi())) 6371 } 6372 #[cfg(not(windows))] 6373 unimplemented!("Unsupported target OS"); 6374 } 6375 #[cfg(feature = "Win32_Graphics_Gdi")] 6376 #[inline] 6377 pub unsafe fn wglSetLayerPaletteEntries<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: i32, param2: i32, param3: i32, param4: *const u32) -> i32 { 6378 #[cfg(windows)] 6379 { 6380 #[link(name = "windows")] 6381 extern "system" { 6382 fn wglSetLayerPaletteEntries(param0: super::Gdi::HDC, param1: i32, param2: i32, param3: i32, param4: *const u32) -> i32; 6383 } 6384 ::std::mem::transmute(wglSetLayerPaletteEntries(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3), ::std::mem::transmute(param4))) 6385 } 6386 #[cfg(not(windows))] 6387 unimplemented!("Unsupported target OS"); 6388 } 6389 #[cfg(feature = "Win32_Foundation")] 6390 #[inline] 6391 pub unsafe fn wglShareLists<'a, Param0: ::windows::runtime::IntoParam<'a, HGLRC>, Param1: ::windows::runtime::IntoParam<'a, HGLRC>>(param0: Param0, param1: Param1) -> super::super::Foundation::BOOL { 6392 #[cfg(windows)] 6393 { 6394 #[link(name = "windows")] 6395 extern "system" { 6396 fn wglShareLists(param0: HGLRC, param1: HGLRC) -> super::super::Foundation::BOOL; 6397 } 6398 ::std::mem::transmute(wglShareLists(param0.into_param().abi(), param1.into_param().abi())) 6399 } 6400 #[cfg(not(windows))] 6401 unimplemented!("Unsupported target OS"); 6402 } 6403 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6404 #[inline] 6405 pub unsafe fn wglSwapLayerBuffers<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: u32) -> super::super::Foundation::BOOL { 6406 #[cfg(windows)] 6407 { 6408 #[link(name = "windows")] 6409 extern "system" { 6410 fn wglSwapLayerBuffers(param0: super::Gdi::HDC, param1: u32) -> super::super::Foundation::BOOL; 6411 } 6412 ::std::mem::transmute(wglSwapLayerBuffers(param0.into_param().abi(), ::std::mem::transmute(param1))) 6413 } 6414 #[cfg(not(windows))] 6415 unimplemented!("Unsupported target OS"); 6416 } 6417 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6418 #[inline] 6419 pub unsafe fn wglUseFontBitmapsA<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: u32, param2: u32, param3: u32) -> super::super::Foundation::BOOL { 6420 #[cfg(windows)] 6421 { 6422 #[link(name = "windows")] 6423 extern "system" { 6424 fn wglUseFontBitmapsA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> super::super::Foundation::BOOL; 6425 } 6426 ::std::mem::transmute(wglUseFontBitmapsA(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3))) 6427 } 6428 #[cfg(not(windows))] 6429 unimplemented!("Unsupported target OS"); 6430 } 6431 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6432 #[inline] 6433 pub unsafe fn wglUseFontBitmapsW<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: u32, param2: u32, param3: u32) -> super::super::Foundation::BOOL { 6434 #[cfg(windows)] 6435 { 6436 #[link(name = "windows")] 6437 extern "system" { 6438 fn wglUseFontBitmapsW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32) -> super::super::Foundation::BOOL; 6439 } 6440 ::std::mem::transmute(wglUseFontBitmapsW(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3))) 6441 } 6442 #[cfg(not(windows))] 6443 unimplemented!("Unsupported target OS"); 6444 } 6445 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6446 #[inline] 6447 pub unsafe fn wglUseFontOutlinesA<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> super::super::Foundation::BOOL { 6448 #[cfg(windows)] 6449 { 6450 #[link(name = "windows")] 6451 extern "system" { 6452 fn wglUseFontOutlinesA(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> super::super::Foundation::BOOL; 6453 } 6454 ::std::mem::transmute(wglUseFontOutlinesA(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3), ::std::mem::transmute(param4), ::std::mem::transmute(param5), ::std::mem::transmute(param6), ::std::mem::transmute(param7))) 6455 } 6456 #[cfg(not(windows))] 6457 unimplemented!("Unsupported target OS"); 6458 } 6459 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_Graphics_Gdi"))] 6460 #[inline] 6461 pub unsafe fn wglUseFontOutlinesW<'a, Param0: ::windows::runtime::IntoParam<'a, super::Gdi::HDC>>(param0: Param0, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> super::super::Foundation::BOOL { 6462 #[cfg(windows)] 6463 { 6464 #[link(name = "windows")] 6465 extern "system" { 6466 fn wglUseFontOutlinesW(param0: super::Gdi::HDC, param1: u32, param2: u32, param3: u32, param4: f32, param5: f32, param6: i32, param7: *mut GLYPHMETRICSFLOAT) -> super::super::Foundation::BOOL; 6467 } 6468 ::std::mem::transmute(wglUseFontOutlinesW(param0.into_param().abi(), ::std::mem::transmute(param1), ::std::mem::transmute(param2), ::std::mem::transmute(param3), ::std::mem::transmute(param4), ::std::mem::transmute(param5), ::std::mem::transmute(param6), ::std::mem::transmute(param7))) 6469 } 6470 #[cfg(not(windows))] 6471 unimplemented!("Unsupported target OS"); 6472 } 6473