github.com/tomatome/win@v0.3.1/opengl32.go (about) 1 // This file was automatically generated by https://github.com/kbinani/win/blob/generator/internal/cmd/gen/gen.go 2 // go run internal/cmd/gen/gen.go 3 4 // +build windows 5 6 package win 7 8 import ( 9 "unsafe" 10 ) 11 12 var ( 13 // Library 14 libopengl32 uintptr 15 16 // Functions 17 glAccum uintptr 18 glAlphaFunc uintptr 19 glAreTexturesResident uintptr 20 glArrayElement uintptr 21 glBegin uintptr 22 glBindTexture uintptr 23 glBitmap uintptr 24 glBlendFunc uintptr 25 glCallList uintptr 26 glCallLists uintptr 27 glClear uintptr 28 glClearAccum uintptr 29 glClearColor uintptr 30 glClearDepth uintptr 31 glClearIndex uintptr 32 glClearStencil uintptr 33 glClipPlane uintptr 34 glColor3b uintptr 35 glColor3bv uintptr 36 glColor3d uintptr 37 glColor3dv uintptr 38 glColor3f uintptr 39 glColor3fv uintptr 40 glColor3i uintptr 41 glColor3iv uintptr 42 glColor3s uintptr 43 glColor3sv uintptr 44 glColor3ub uintptr 45 glColor3ubv uintptr 46 glColor3ui uintptr 47 glColor3uiv uintptr 48 glColor3us uintptr 49 glColor3usv uintptr 50 glColor4b uintptr 51 glColor4bv uintptr 52 glColor4d uintptr 53 glColor4dv uintptr 54 glColor4f uintptr 55 glColor4fv uintptr 56 glColor4i uintptr 57 glColor4iv uintptr 58 glColor4s uintptr 59 glColor4sv uintptr 60 glColor4ub uintptr 61 glColor4ubv uintptr 62 glColor4ui uintptr 63 glColor4uiv uintptr 64 glColor4us uintptr 65 glColor4usv uintptr 66 glColorMask uintptr 67 glColorMaterial uintptr 68 glColorPointer uintptr 69 glCopyPixels uintptr 70 glCopyTexImage1D uintptr 71 glCopyTexImage2D uintptr 72 glCopyTexSubImage1D uintptr 73 glCopyTexSubImage2D uintptr 74 glCullFace uintptr 75 glDeleteLists uintptr 76 glDeleteTextures uintptr 77 glDepthFunc uintptr 78 glDepthMask uintptr 79 glDepthRange uintptr 80 glDisable uintptr 81 glDisableClientState uintptr 82 glDrawArrays uintptr 83 glDrawBuffer uintptr 84 glDrawElements uintptr 85 glDrawPixels uintptr 86 glEdgeFlag uintptr 87 glEdgeFlagPointer uintptr 88 glEdgeFlagv uintptr 89 glEnable uintptr 90 glEnableClientState uintptr 91 glEnd uintptr 92 glEndList uintptr 93 glEvalCoord1d uintptr 94 glEvalCoord1dv uintptr 95 glEvalCoord1f uintptr 96 glEvalCoord1fv uintptr 97 glEvalCoord2d uintptr 98 glEvalCoord2dv uintptr 99 glEvalCoord2f uintptr 100 glEvalCoord2fv uintptr 101 glEvalMesh1 uintptr 102 glEvalMesh2 uintptr 103 glEvalPoint1 uintptr 104 glEvalPoint2 uintptr 105 glFeedbackBuffer uintptr 106 glFinish uintptr 107 glFlush uintptr 108 glFogf uintptr 109 glFogfv uintptr 110 glFogi uintptr 111 glFogiv uintptr 112 glFrontFace uintptr 113 glFrustum uintptr 114 glGenLists uintptr 115 glGenTextures uintptr 116 glGetBooleanv uintptr 117 glGetClipPlane uintptr 118 glGetDoublev uintptr 119 glGetError uintptr 120 glGetFloatv uintptr 121 glGetIntegerv uintptr 122 glGetLightfv uintptr 123 glGetLightiv uintptr 124 glGetMapdv uintptr 125 glGetMapfv uintptr 126 glGetMapiv uintptr 127 glGetMaterialfv uintptr 128 glGetMaterialiv uintptr 129 glGetPixelMapfv uintptr 130 glGetPixelMapuiv uintptr 131 glGetPixelMapusv uintptr 132 glGetPointerv uintptr 133 glGetPolygonStipple uintptr 134 glGetTexEnvfv uintptr 135 glGetTexEnviv uintptr 136 glGetTexGendv uintptr 137 glGetTexGenfv uintptr 138 glGetTexGeniv uintptr 139 glGetTexImage uintptr 140 glGetTexLevelParameterfv uintptr 141 glGetTexLevelParameteriv uintptr 142 glGetTexParameterfv uintptr 143 glGetTexParameteriv uintptr 144 glHint uintptr 145 glIndexMask uintptr 146 glIndexPointer uintptr 147 glIndexd uintptr 148 glIndexdv uintptr 149 glIndexf uintptr 150 glIndexfv uintptr 151 glIndexi uintptr 152 glIndexiv uintptr 153 glIndexs uintptr 154 glIndexsv uintptr 155 glIndexub uintptr 156 glIndexubv uintptr 157 glInitNames uintptr 158 glInterleavedArrays uintptr 159 glIsEnabled uintptr 160 glIsList uintptr 161 glIsTexture uintptr 162 glLightModelf uintptr 163 glLightModelfv uintptr 164 glLightModeli uintptr 165 glLightModeliv uintptr 166 glLightf uintptr 167 glLightfv uintptr 168 glLighti uintptr 169 glLightiv uintptr 170 glLineStipple uintptr 171 glLineWidth uintptr 172 glListBase uintptr 173 glLoadIdentity uintptr 174 glLoadMatrixd uintptr 175 glLoadMatrixf uintptr 176 glLoadName uintptr 177 glLogicOp uintptr 178 glMap1d uintptr 179 glMap1f uintptr 180 glMap2d uintptr 181 glMap2f uintptr 182 glMapGrid1d uintptr 183 glMapGrid1f uintptr 184 glMapGrid2d uintptr 185 glMapGrid2f uintptr 186 glMaterialf uintptr 187 glMaterialfv uintptr 188 glMateriali uintptr 189 glMaterialiv uintptr 190 glMatrixMode uintptr 191 glMultMatrixd uintptr 192 glMultMatrixf uintptr 193 glNewList uintptr 194 glNormal3b uintptr 195 glNormal3bv uintptr 196 glNormal3d uintptr 197 glNormal3dv uintptr 198 glNormal3f uintptr 199 glNormal3fv uintptr 200 glNormal3i uintptr 201 glNormal3iv uintptr 202 glNormal3s uintptr 203 glNormal3sv uintptr 204 glNormalPointer uintptr 205 glOrtho uintptr 206 glPassThrough uintptr 207 glPixelMapfv uintptr 208 glPixelMapuiv uintptr 209 glPixelMapusv uintptr 210 glPixelStoref uintptr 211 glPixelStorei uintptr 212 glPixelTransferf uintptr 213 glPixelTransferi uintptr 214 glPixelZoom uintptr 215 glPointSize uintptr 216 glPolygonMode uintptr 217 glPolygonOffset uintptr 218 glPolygonStipple uintptr 219 glPopAttrib uintptr 220 glPopClientAttrib uintptr 221 glPopMatrix uintptr 222 glPopName uintptr 223 glPrioritizeTextures uintptr 224 glPushAttrib uintptr 225 glPushClientAttrib uintptr 226 glPushMatrix uintptr 227 glPushName uintptr 228 glRasterPos2d uintptr 229 glRasterPos2dv uintptr 230 glRasterPos2f uintptr 231 glRasterPos2fv uintptr 232 glRasterPos2i uintptr 233 glRasterPos2iv uintptr 234 glRasterPos2s uintptr 235 glRasterPos2sv uintptr 236 glRasterPos3d uintptr 237 glRasterPos3dv uintptr 238 glRasterPos3f uintptr 239 glRasterPos3fv uintptr 240 glRasterPos3i uintptr 241 glRasterPos3iv uintptr 242 glRasterPos3s uintptr 243 glRasterPos3sv uintptr 244 glRasterPos4d uintptr 245 glRasterPos4dv uintptr 246 glRasterPos4f uintptr 247 glRasterPos4fv uintptr 248 glRasterPos4i uintptr 249 glRasterPos4iv uintptr 250 glRasterPos4s uintptr 251 glRasterPos4sv uintptr 252 glReadBuffer uintptr 253 glReadPixels uintptr 254 glRectd uintptr 255 glRectdv uintptr 256 glRectf uintptr 257 glRectfv uintptr 258 glRecti uintptr 259 glRectiv uintptr 260 glRects uintptr 261 glRectsv uintptr 262 glRenderMode uintptr 263 glRotated uintptr 264 glRotatef uintptr 265 glScaled uintptr 266 glScalef uintptr 267 glScissor uintptr 268 glSelectBuffer uintptr 269 glShadeModel uintptr 270 glStencilFunc uintptr 271 glStencilMask uintptr 272 glStencilOp uintptr 273 glTexCoord1d uintptr 274 glTexCoord1dv uintptr 275 glTexCoord1f uintptr 276 glTexCoord1fv uintptr 277 glTexCoord1i uintptr 278 glTexCoord1iv uintptr 279 glTexCoord1s uintptr 280 glTexCoord1sv uintptr 281 glTexCoord2d uintptr 282 glTexCoord2dv uintptr 283 glTexCoord2f uintptr 284 glTexCoord2fv uintptr 285 glTexCoord2i uintptr 286 glTexCoord2iv uintptr 287 glTexCoord2s uintptr 288 glTexCoord2sv uintptr 289 glTexCoord3d uintptr 290 glTexCoord3dv uintptr 291 glTexCoord3f uintptr 292 glTexCoord3fv uintptr 293 glTexCoord3i uintptr 294 glTexCoord3iv uintptr 295 glTexCoord3s uintptr 296 glTexCoord3sv uintptr 297 glTexCoord4d uintptr 298 glTexCoord4dv uintptr 299 glTexCoord4f uintptr 300 glTexCoord4fv uintptr 301 glTexCoord4i uintptr 302 glTexCoord4iv uintptr 303 glTexCoord4s uintptr 304 glTexCoord4sv uintptr 305 glTexCoordPointer uintptr 306 glTexEnvf uintptr 307 glTexEnvfv uintptr 308 glTexEnvi uintptr 309 glTexEnviv uintptr 310 glTexGend uintptr 311 glTexGendv uintptr 312 glTexGenf uintptr 313 glTexGenfv uintptr 314 glTexGeni uintptr 315 glTexGeniv uintptr 316 glTexImage1D uintptr 317 glTexImage2D uintptr 318 glTexParameterf uintptr 319 glTexParameterfv uintptr 320 glTexParameteri uintptr 321 glTexParameteriv uintptr 322 glTexSubImage1D uintptr 323 glTexSubImage2D uintptr 324 glTranslated uintptr 325 glTranslatef uintptr 326 glVertex2d uintptr 327 glVertex2dv uintptr 328 glVertex2f uintptr 329 glVertex2fv uintptr 330 glVertex2i uintptr 331 glVertex2iv uintptr 332 glVertex2s uintptr 333 glVertex2sv uintptr 334 glVertex3d uintptr 335 glVertex3dv uintptr 336 glVertex3f uintptr 337 glVertex3fv uintptr 338 glVertex3i uintptr 339 glVertex3iv uintptr 340 glVertex3s uintptr 341 glVertex3sv uintptr 342 glVertex4d uintptr 343 glVertex4dv uintptr 344 glVertex4f uintptr 345 glVertex4fv uintptr 346 glVertex4i uintptr 347 glVertex4iv uintptr 348 glVertex4s uintptr 349 glVertex4sv uintptr 350 glVertexPointer uintptr 351 glViewport uintptr 352 wglCopyContext uintptr 353 wglCreateContext uintptr 354 wglCreateLayerContext uintptr 355 wglDeleteContext uintptr 356 wglDescribeLayerPlane uintptr 357 wglGetCurrentContext uintptr 358 wglGetCurrentDC uintptr 359 wglGetLayerPaletteEntries uintptr 360 wglGetProcAddress uintptr 361 wglMakeCurrent uintptr 362 wglRealizeLayerPalette uintptr 363 wglSetLayerPaletteEntries uintptr 364 wglShareLists uintptr 365 wglSwapLayerBuffers uintptr 366 wglSwapMultipleBuffers uintptr 367 wglUseFontBitmaps uintptr 368 wglUseFontOutlines uintptr 369 glDebugEntry uintptr 370 wglChoosePixelFormat uintptr 371 wglDescribePixelFormat uintptr 372 wglGetPixelFormat uintptr 373 wglSetPixelFormat uintptr 374 ) 375 376 func init() { 377 // Library 378 libopengl32 = doLoadLibrary("opengl32.dll") 379 380 // Functions 381 glAccum = doGetProcAddress(libopengl32, "glAccum") 382 glAlphaFunc = doGetProcAddress(libopengl32, "glAlphaFunc") 383 glAreTexturesResident = doGetProcAddress(libopengl32, "glAreTexturesResident") 384 glArrayElement = doGetProcAddress(libopengl32, "glArrayElement") 385 glBegin = doGetProcAddress(libopengl32, "glBegin") 386 glBindTexture = doGetProcAddress(libopengl32, "glBindTexture") 387 glBitmap = doGetProcAddress(libopengl32, "glBitmap") 388 glBlendFunc = doGetProcAddress(libopengl32, "glBlendFunc") 389 glCallList = doGetProcAddress(libopengl32, "glCallList") 390 glCallLists = doGetProcAddress(libopengl32, "glCallLists") 391 glClear = doGetProcAddress(libopengl32, "glClear") 392 glClearAccum = doGetProcAddress(libopengl32, "glClearAccum") 393 glClearColor = doGetProcAddress(libopengl32, "glClearColor") 394 glClearDepth = doGetProcAddress(libopengl32, "glClearDepth") 395 glClearIndex = doGetProcAddress(libopengl32, "glClearIndex") 396 glClearStencil = doGetProcAddress(libopengl32, "glClearStencil") 397 glClipPlane = doGetProcAddress(libopengl32, "glClipPlane") 398 glColor3b = doGetProcAddress(libopengl32, "glColor3b") 399 glColor3bv = doGetProcAddress(libopengl32, "glColor3bv") 400 glColor3d = doGetProcAddress(libopengl32, "glColor3d") 401 glColor3dv = doGetProcAddress(libopengl32, "glColor3dv") 402 glColor3f = doGetProcAddress(libopengl32, "glColor3f") 403 glColor3fv = doGetProcAddress(libopengl32, "glColor3fv") 404 glColor3i = doGetProcAddress(libopengl32, "glColor3i") 405 glColor3iv = doGetProcAddress(libopengl32, "glColor3iv") 406 glColor3s = doGetProcAddress(libopengl32, "glColor3s") 407 glColor3sv = doGetProcAddress(libopengl32, "glColor3sv") 408 glColor3ub = doGetProcAddress(libopengl32, "glColor3ub") 409 glColor3ubv = doGetProcAddress(libopengl32, "glColor3ubv") 410 glColor3ui = doGetProcAddress(libopengl32, "glColor3ui") 411 glColor3uiv = doGetProcAddress(libopengl32, "glColor3uiv") 412 glColor3us = doGetProcAddress(libopengl32, "glColor3us") 413 glColor3usv = doGetProcAddress(libopengl32, "glColor3usv") 414 glColor4b = doGetProcAddress(libopengl32, "glColor4b") 415 glColor4bv = doGetProcAddress(libopengl32, "glColor4bv") 416 glColor4d = doGetProcAddress(libopengl32, "glColor4d") 417 glColor4dv = doGetProcAddress(libopengl32, "glColor4dv") 418 glColor4f = doGetProcAddress(libopengl32, "glColor4f") 419 glColor4fv = doGetProcAddress(libopengl32, "glColor4fv") 420 glColor4i = doGetProcAddress(libopengl32, "glColor4i") 421 glColor4iv = doGetProcAddress(libopengl32, "glColor4iv") 422 glColor4s = doGetProcAddress(libopengl32, "glColor4s") 423 glColor4sv = doGetProcAddress(libopengl32, "glColor4sv") 424 glColor4ub = doGetProcAddress(libopengl32, "glColor4ub") 425 glColor4ubv = doGetProcAddress(libopengl32, "glColor4ubv") 426 glColor4ui = doGetProcAddress(libopengl32, "glColor4ui") 427 glColor4uiv = doGetProcAddress(libopengl32, "glColor4uiv") 428 glColor4us = doGetProcAddress(libopengl32, "glColor4us") 429 glColor4usv = doGetProcAddress(libopengl32, "glColor4usv") 430 glColorMask = doGetProcAddress(libopengl32, "glColorMask") 431 glColorMaterial = doGetProcAddress(libopengl32, "glColorMaterial") 432 glColorPointer = doGetProcAddress(libopengl32, "glColorPointer") 433 glCopyPixels = doGetProcAddress(libopengl32, "glCopyPixels") 434 glCopyTexImage1D = doGetProcAddress(libopengl32, "glCopyTexImage1D") 435 glCopyTexImage2D = doGetProcAddress(libopengl32, "glCopyTexImage2D") 436 glCopyTexSubImage1D = doGetProcAddress(libopengl32, "glCopyTexSubImage1D") 437 glCopyTexSubImage2D = doGetProcAddress(libopengl32, "glCopyTexSubImage2D") 438 glCullFace = doGetProcAddress(libopengl32, "glCullFace") 439 glDeleteLists = doGetProcAddress(libopengl32, "glDeleteLists") 440 glDeleteTextures = doGetProcAddress(libopengl32, "glDeleteTextures") 441 glDepthFunc = doGetProcAddress(libopengl32, "glDepthFunc") 442 glDepthMask = doGetProcAddress(libopengl32, "glDepthMask") 443 glDepthRange = doGetProcAddress(libopengl32, "glDepthRange") 444 glDisable = doGetProcAddress(libopengl32, "glDisable") 445 glDisableClientState = doGetProcAddress(libopengl32, "glDisableClientState") 446 glDrawArrays = doGetProcAddress(libopengl32, "glDrawArrays") 447 glDrawBuffer = doGetProcAddress(libopengl32, "glDrawBuffer") 448 glDrawElements = doGetProcAddress(libopengl32, "glDrawElements") 449 glDrawPixels = doGetProcAddress(libopengl32, "glDrawPixels") 450 glEdgeFlag = doGetProcAddress(libopengl32, "glEdgeFlag") 451 glEdgeFlagPointer = doGetProcAddress(libopengl32, "glEdgeFlagPointer") 452 glEdgeFlagv = doGetProcAddress(libopengl32, "glEdgeFlagv") 453 glEnable = doGetProcAddress(libopengl32, "glEnable") 454 glEnableClientState = doGetProcAddress(libopengl32, "glEnableClientState") 455 glEnd = doGetProcAddress(libopengl32, "glEnd") 456 glEndList = doGetProcAddress(libopengl32, "glEndList") 457 glEvalCoord1d = doGetProcAddress(libopengl32, "glEvalCoord1d") 458 glEvalCoord1dv = doGetProcAddress(libopengl32, "glEvalCoord1dv") 459 glEvalCoord1f = doGetProcAddress(libopengl32, "glEvalCoord1f") 460 glEvalCoord1fv = doGetProcAddress(libopengl32, "glEvalCoord1fv") 461 glEvalCoord2d = doGetProcAddress(libopengl32, "glEvalCoord2d") 462 glEvalCoord2dv = doGetProcAddress(libopengl32, "glEvalCoord2dv") 463 glEvalCoord2f = doGetProcAddress(libopengl32, "glEvalCoord2f") 464 glEvalCoord2fv = doGetProcAddress(libopengl32, "glEvalCoord2fv") 465 glEvalMesh1 = doGetProcAddress(libopengl32, "glEvalMesh1") 466 glEvalMesh2 = doGetProcAddress(libopengl32, "glEvalMesh2") 467 glEvalPoint1 = doGetProcAddress(libopengl32, "glEvalPoint1") 468 glEvalPoint2 = doGetProcAddress(libopengl32, "glEvalPoint2") 469 glFeedbackBuffer = doGetProcAddress(libopengl32, "glFeedbackBuffer") 470 glFinish = doGetProcAddress(libopengl32, "glFinish") 471 glFlush = doGetProcAddress(libopengl32, "glFlush") 472 glFogf = doGetProcAddress(libopengl32, "glFogf") 473 glFogfv = doGetProcAddress(libopengl32, "glFogfv") 474 glFogi = doGetProcAddress(libopengl32, "glFogi") 475 glFogiv = doGetProcAddress(libopengl32, "glFogiv") 476 glFrontFace = doGetProcAddress(libopengl32, "glFrontFace") 477 glFrustum = doGetProcAddress(libopengl32, "glFrustum") 478 glGenLists = doGetProcAddress(libopengl32, "glGenLists") 479 glGenTextures = doGetProcAddress(libopengl32, "glGenTextures") 480 glGetBooleanv = doGetProcAddress(libopengl32, "glGetBooleanv") 481 glGetClipPlane = doGetProcAddress(libopengl32, "glGetClipPlane") 482 glGetDoublev = doGetProcAddress(libopengl32, "glGetDoublev") 483 glGetError = doGetProcAddress(libopengl32, "glGetError") 484 glGetFloatv = doGetProcAddress(libopengl32, "glGetFloatv") 485 glGetIntegerv = doGetProcAddress(libopengl32, "glGetIntegerv") 486 glGetLightfv = doGetProcAddress(libopengl32, "glGetLightfv") 487 glGetLightiv = doGetProcAddress(libopengl32, "glGetLightiv") 488 glGetMapdv = doGetProcAddress(libopengl32, "glGetMapdv") 489 glGetMapfv = doGetProcAddress(libopengl32, "glGetMapfv") 490 glGetMapiv = doGetProcAddress(libopengl32, "glGetMapiv") 491 glGetMaterialfv = doGetProcAddress(libopengl32, "glGetMaterialfv") 492 glGetMaterialiv = doGetProcAddress(libopengl32, "glGetMaterialiv") 493 glGetPixelMapfv = doGetProcAddress(libopengl32, "glGetPixelMapfv") 494 glGetPixelMapuiv = doGetProcAddress(libopengl32, "glGetPixelMapuiv") 495 glGetPixelMapusv = doGetProcAddress(libopengl32, "glGetPixelMapusv") 496 glGetPointerv = doGetProcAddress(libopengl32, "glGetPointerv") 497 glGetPolygonStipple = doGetProcAddress(libopengl32, "glGetPolygonStipple") 498 glGetTexEnvfv = doGetProcAddress(libopengl32, "glGetTexEnvfv") 499 glGetTexEnviv = doGetProcAddress(libopengl32, "glGetTexEnviv") 500 glGetTexGendv = doGetProcAddress(libopengl32, "glGetTexGendv") 501 glGetTexGenfv = doGetProcAddress(libopengl32, "glGetTexGenfv") 502 glGetTexGeniv = doGetProcAddress(libopengl32, "glGetTexGeniv") 503 glGetTexImage = doGetProcAddress(libopengl32, "glGetTexImage") 504 glGetTexLevelParameterfv = doGetProcAddress(libopengl32, "glGetTexLevelParameterfv") 505 glGetTexLevelParameteriv = doGetProcAddress(libopengl32, "glGetTexLevelParameteriv") 506 glGetTexParameterfv = doGetProcAddress(libopengl32, "glGetTexParameterfv") 507 glGetTexParameteriv = doGetProcAddress(libopengl32, "glGetTexParameteriv") 508 glHint = doGetProcAddress(libopengl32, "glHint") 509 glIndexMask = doGetProcAddress(libopengl32, "glIndexMask") 510 glIndexPointer = doGetProcAddress(libopengl32, "glIndexPointer") 511 glIndexd = doGetProcAddress(libopengl32, "glIndexd") 512 glIndexdv = doGetProcAddress(libopengl32, "glIndexdv") 513 glIndexf = doGetProcAddress(libopengl32, "glIndexf") 514 glIndexfv = doGetProcAddress(libopengl32, "glIndexfv") 515 glIndexi = doGetProcAddress(libopengl32, "glIndexi") 516 glIndexiv = doGetProcAddress(libopengl32, "glIndexiv") 517 glIndexs = doGetProcAddress(libopengl32, "glIndexs") 518 glIndexsv = doGetProcAddress(libopengl32, "glIndexsv") 519 glIndexub = doGetProcAddress(libopengl32, "glIndexub") 520 glIndexubv = doGetProcAddress(libopengl32, "glIndexubv") 521 glInitNames = doGetProcAddress(libopengl32, "glInitNames") 522 glInterleavedArrays = doGetProcAddress(libopengl32, "glInterleavedArrays") 523 glIsEnabled = doGetProcAddress(libopengl32, "glIsEnabled") 524 glIsList = doGetProcAddress(libopengl32, "glIsList") 525 glIsTexture = doGetProcAddress(libopengl32, "glIsTexture") 526 glLightModelf = doGetProcAddress(libopengl32, "glLightModelf") 527 glLightModelfv = doGetProcAddress(libopengl32, "glLightModelfv") 528 glLightModeli = doGetProcAddress(libopengl32, "glLightModeli") 529 glLightModeliv = doGetProcAddress(libopengl32, "glLightModeliv") 530 glLightf = doGetProcAddress(libopengl32, "glLightf") 531 glLightfv = doGetProcAddress(libopengl32, "glLightfv") 532 glLighti = doGetProcAddress(libopengl32, "glLighti") 533 glLightiv = doGetProcAddress(libopengl32, "glLightiv") 534 glLineStipple = doGetProcAddress(libopengl32, "glLineStipple") 535 glLineWidth = doGetProcAddress(libopengl32, "glLineWidth") 536 glListBase = doGetProcAddress(libopengl32, "glListBase") 537 glLoadIdentity = doGetProcAddress(libopengl32, "glLoadIdentity") 538 glLoadMatrixd = doGetProcAddress(libopengl32, "glLoadMatrixd") 539 glLoadMatrixf = doGetProcAddress(libopengl32, "glLoadMatrixf") 540 glLoadName = doGetProcAddress(libopengl32, "glLoadName") 541 glLogicOp = doGetProcAddress(libopengl32, "glLogicOp") 542 glMap1d = doGetProcAddress(libopengl32, "glMap1d") 543 glMap1f = doGetProcAddress(libopengl32, "glMap1f") 544 glMap2d = doGetProcAddress(libopengl32, "glMap2d") 545 glMap2f = doGetProcAddress(libopengl32, "glMap2f") 546 glMapGrid1d = doGetProcAddress(libopengl32, "glMapGrid1d") 547 glMapGrid1f = doGetProcAddress(libopengl32, "glMapGrid1f") 548 glMapGrid2d = doGetProcAddress(libopengl32, "glMapGrid2d") 549 glMapGrid2f = doGetProcAddress(libopengl32, "glMapGrid2f") 550 glMaterialf = doGetProcAddress(libopengl32, "glMaterialf") 551 glMaterialfv = doGetProcAddress(libopengl32, "glMaterialfv") 552 glMateriali = doGetProcAddress(libopengl32, "glMateriali") 553 glMaterialiv = doGetProcAddress(libopengl32, "glMaterialiv") 554 glMatrixMode = doGetProcAddress(libopengl32, "glMatrixMode") 555 glMultMatrixd = doGetProcAddress(libopengl32, "glMultMatrixd") 556 glMultMatrixf = doGetProcAddress(libopengl32, "glMultMatrixf") 557 glNewList = doGetProcAddress(libopengl32, "glNewList") 558 glNormal3b = doGetProcAddress(libopengl32, "glNormal3b") 559 glNormal3bv = doGetProcAddress(libopengl32, "glNormal3bv") 560 glNormal3d = doGetProcAddress(libopengl32, "glNormal3d") 561 glNormal3dv = doGetProcAddress(libopengl32, "glNormal3dv") 562 glNormal3f = doGetProcAddress(libopengl32, "glNormal3f") 563 glNormal3fv = doGetProcAddress(libopengl32, "glNormal3fv") 564 glNormal3i = doGetProcAddress(libopengl32, "glNormal3i") 565 glNormal3iv = doGetProcAddress(libopengl32, "glNormal3iv") 566 glNormal3s = doGetProcAddress(libopengl32, "glNormal3s") 567 glNormal3sv = doGetProcAddress(libopengl32, "glNormal3sv") 568 glNormalPointer = doGetProcAddress(libopengl32, "glNormalPointer") 569 glOrtho = doGetProcAddress(libopengl32, "glOrtho") 570 glPassThrough = doGetProcAddress(libopengl32, "glPassThrough") 571 glPixelMapfv = doGetProcAddress(libopengl32, "glPixelMapfv") 572 glPixelMapuiv = doGetProcAddress(libopengl32, "glPixelMapuiv") 573 glPixelMapusv = doGetProcAddress(libopengl32, "glPixelMapusv") 574 glPixelStoref = doGetProcAddress(libopengl32, "glPixelStoref") 575 glPixelStorei = doGetProcAddress(libopengl32, "glPixelStorei") 576 glPixelTransferf = doGetProcAddress(libopengl32, "glPixelTransferf") 577 glPixelTransferi = doGetProcAddress(libopengl32, "glPixelTransferi") 578 glPixelZoom = doGetProcAddress(libopengl32, "glPixelZoom") 579 glPointSize = doGetProcAddress(libopengl32, "glPointSize") 580 glPolygonMode = doGetProcAddress(libopengl32, "glPolygonMode") 581 glPolygonOffset = doGetProcAddress(libopengl32, "glPolygonOffset") 582 glPolygonStipple = doGetProcAddress(libopengl32, "glPolygonStipple") 583 glPopAttrib = doGetProcAddress(libopengl32, "glPopAttrib") 584 glPopClientAttrib = doGetProcAddress(libopengl32, "glPopClientAttrib") 585 glPopMatrix = doGetProcAddress(libopengl32, "glPopMatrix") 586 glPopName = doGetProcAddress(libopengl32, "glPopName") 587 glPrioritizeTextures = doGetProcAddress(libopengl32, "glPrioritizeTextures") 588 glPushAttrib = doGetProcAddress(libopengl32, "glPushAttrib") 589 glPushClientAttrib = doGetProcAddress(libopengl32, "glPushClientAttrib") 590 glPushMatrix = doGetProcAddress(libopengl32, "glPushMatrix") 591 glPushName = doGetProcAddress(libopengl32, "glPushName") 592 glRasterPos2d = doGetProcAddress(libopengl32, "glRasterPos2d") 593 glRasterPos2dv = doGetProcAddress(libopengl32, "glRasterPos2dv") 594 glRasterPos2f = doGetProcAddress(libopengl32, "glRasterPos2f") 595 glRasterPos2fv = doGetProcAddress(libopengl32, "glRasterPos2fv") 596 glRasterPos2i = doGetProcAddress(libopengl32, "glRasterPos2i") 597 glRasterPos2iv = doGetProcAddress(libopengl32, "glRasterPos2iv") 598 glRasterPos2s = doGetProcAddress(libopengl32, "glRasterPos2s") 599 glRasterPos2sv = doGetProcAddress(libopengl32, "glRasterPos2sv") 600 glRasterPos3d = doGetProcAddress(libopengl32, "glRasterPos3d") 601 glRasterPos3dv = doGetProcAddress(libopengl32, "glRasterPos3dv") 602 glRasterPos3f = doGetProcAddress(libopengl32, "glRasterPos3f") 603 glRasterPos3fv = doGetProcAddress(libopengl32, "glRasterPos3fv") 604 glRasterPos3i = doGetProcAddress(libopengl32, "glRasterPos3i") 605 glRasterPos3iv = doGetProcAddress(libopengl32, "glRasterPos3iv") 606 glRasterPos3s = doGetProcAddress(libopengl32, "glRasterPos3s") 607 glRasterPos3sv = doGetProcAddress(libopengl32, "glRasterPos3sv") 608 glRasterPos4d = doGetProcAddress(libopengl32, "glRasterPos4d") 609 glRasterPos4dv = doGetProcAddress(libopengl32, "glRasterPos4dv") 610 glRasterPos4f = doGetProcAddress(libopengl32, "glRasterPos4f") 611 glRasterPos4fv = doGetProcAddress(libopengl32, "glRasterPos4fv") 612 glRasterPos4i = doGetProcAddress(libopengl32, "glRasterPos4i") 613 glRasterPos4iv = doGetProcAddress(libopengl32, "glRasterPos4iv") 614 glRasterPos4s = doGetProcAddress(libopengl32, "glRasterPos4s") 615 glRasterPos4sv = doGetProcAddress(libopengl32, "glRasterPos4sv") 616 glReadBuffer = doGetProcAddress(libopengl32, "glReadBuffer") 617 glReadPixels = doGetProcAddress(libopengl32, "glReadPixels") 618 glRectd = doGetProcAddress(libopengl32, "glRectd") 619 glRectdv = doGetProcAddress(libopengl32, "glRectdv") 620 glRectf = doGetProcAddress(libopengl32, "glRectf") 621 glRectfv = doGetProcAddress(libopengl32, "glRectfv") 622 glRecti = doGetProcAddress(libopengl32, "glRecti") 623 glRectiv = doGetProcAddress(libopengl32, "glRectiv") 624 glRects = doGetProcAddress(libopengl32, "glRects") 625 glRectsv = doGetProcAddress(libopengl32, "glRectsv") 626 glRenderMode = doGetProcAddress(libopengl32, "glRenderMode") 627 glRotated = doGetProcAddress(libopengl32, "glRotated") 628 glRotatef = doGetProcAddress(libopengl32, "glRotatef") 629 glScaled = doGetProcAddress(libopengl32, "glScaled") 630 glScalef = doGetProcAddress(libopengl32, "glScalef") 631 glScissor = doGetProcAddress(libopengl32, "glScissor") 632 glSelectBuffer = doGetProcAddress(libopengl32, "glSelectBuffer") 633 glShadeModel = doGetProcAddress(libopengl32, "glShadeModel") 634 glStencilFunc = doGetProcAddress(libopengl32, "glStencilFunc") 635 glStencilMask = doGetProcAddress(libopengl32, "glStencilMask") 636 glStencilOp = doGetProcAddress(libopengl32, "glStencilOp") 637 glTexCoord1d = doGetProcAddress(libopengl32, "glTexCoord1d") 638 glTexCoord1dv = doGetProcAddress(libopengl32, "glTexCoord1dv") 639 glTexCoord1f = doGetProcAddress(libopengl32, "glTexCoord1f") 640 glTexCoord1fv = doGetProcAddress(libopengl32, "glTexCoord1fv") 641 glTexCoord1i = doGetProcAddress(libopengl32, "glTexCoord1i") 642 glTexCoord1iv = doGetProcAddress(libopengl32, "glTexCoord1iv") 643 glTexCoord1s = doGetProcAddress(libopengl32, "glTexCoord1s") 644 glTexCoord1sv = doGetProcAddress(libopengl32, "glTexCoord1sv") 645 glTexCoord2d = doGetProcAddress(libopengl32, "glTexCoord2d") 646 glTexCoord2dv = doGetProcAddress(libopengl32, "glTexCoord2dv") 647 glTexCoord2f = doGetProcAddress(libopengl32, "glTexCoord2f") 648 glTexCoord2fv = doGetProcAddress(libopengl32, "glTexCoord2fv") 649 glTexCoord2i = doGetProcAddress(libopengl32, "glTexCoord2i") 650 glTexCoord2iv = doGetProcAddress(libopengl32, "glTexCoord2iv") 651 glTexCoord2s = doGetProcAddress(libopengl32, "glTexCoord2s") 652 glTexCoord2sv = doGetProcAddress(libopengl32, "glTexCoord2sv") 653 glTexCoord3d = doGetProcAddress(libopengl32, "glTexCoord3d") 654 glTexCoord3dv = doGetProcAddress(libopengl32, "glTexCoord3dv") 655 glTexCoord3f = doGetProcAddress(libopengl32, "glTexCoord3f") 656 glTexCoord3fv = doGetProcAddress(libopengl32, "glTexCoord3fv") 657 glTexCoord3i = doGetProcAddress(libopengl32, "glTexCoord3i") 658 glTexCoord3iv = doGetProcAddress(libopengl32, "glTexCoord3iv") 659 glTexCoord3s = doGetProcAddress(libopengl32, "glTexCoord3s") 660 glTexCoord3sv = doGetProcAddress(libopengl32, "glTexCoord3sv") 661 glTexCoord4d = doGetProcAddress(libopengl32, "glTexCoord4d") 662 glTexCoord4dv = doGetProcAddress(libopengl32, "glTexCoord4dv") 663 glTexCoord4f = doGetProcAddress(libopengl32, "glTexCoord4f") 664 glTexCoord4fv = doGetProcAddress(libopengl32, "glTexCoord4fv") 665 glTexCoord4i = doGetProcAddress(libopengl32, "glTexCoord4i") 666 glTexCoord4iv = doGetProcAddress(libopengl32, "glTexCoord4iv") 667 glTexCoord4s = doGetProcAddress(libopengl32, "glTexCoord4s") 668 glTexCoord4sv = doGetProcAddress(libopengl32, "glTexCoord4sv") 669 glTexCoordPointer = doGetProcAddress(libopengl32, "glTexCoordPointer") 670 glTexEnvf = doGetProcAddress(libopengl32, "glTexEnvf") 671 glTexEnvfv = doGetProcAddress(libopengl32, "glTexEnvfv") 672 glTexEnvi = doGetProcAddress(libopengl32, "glTexEnvi") 673 glTexEnviv = doGetProcAddress(libopengl32, "glTexEnviv") 674 glTexGend = doGetProcAddress(libopengl32, "glTexGend") 675 glTexGendv = doGetProcAddress(libopengl32, "glTexGendv") 676 glTexGenf = doGetProcAddress(libopengl32, "glTexGenf") 677 glTexGenfv = doGetProcAddress(libopengl32, "glTexGenfv") 678 glTexGeni = doGetProcAddress(libopengl32, "glTexGeni") 679 glTexGeniv = doGetProcAddress(libopengl32, "glTexGeniv") 680 glTexImage1D = doGetProcAddress(libopengl32, "glTexImage1D") 681 glTexImage2D = doGetProcAddress(libopengl32, "glTexImage2D") 682 glTexParameterf = doGetProcAddress(libopengl32, "glTexParameterf") 683 glTexParameterfv = doGetProcAddress(libopengl32, "glTexParameterfv") 684 glTexParameteri = doGetProcAddress(libopengl32, "glTexParameteri") 685 glTexParameteriv = doGetProcAddress(libopengl32, "glTexParameteriv") 686 glTexSubImage1D = doGetProcAddress(libopengl32, "glTexSubImage1D") 687 glTexSubImage2D = doGetProcAddress(libopengl32, "glTexSubImage2D") 688 glTranslated = doGetProcAddress(libopengl32, "glTranslated") 689 glTranslatef = doGetProcAddress(libopengl32, "glTranslatef") 690 glVertex2d = doGetProcAddress(libopengl32, "glVertex2d") 691 glVertex2dv = doGetProcAddress(libopengl32, "glVertex2dv") 692 glVertex2f = doGetProcAddress(libopengl32, "glVertex2f") 693 glVertex2fv = doGetProcAddress(libopengl32, "glVertex2fv") 694 glVertex2i = doGetProcAddress(libopengl32, "glVertex2i") 695 glVertex2iv = doGetProcAddress(libopengl32, "glVertex2iv") 696 glVertex2s = doGetProcAddress(libopengl32, "glVertex2s") 697 glVertex2sv = doGetProcAddress(libopengl32, "glVertex2sv") 698 glVertex3d = doGetProcAddress(libopengl32, "glVertex3d") 699 glVertex3dv = doGetProcAddress(libopengl32, "glVertex3dv") 700 glVertex3f = doGetProcAddress(libopengl32, "glVertex3f") 701 glVertex3fv = doGetProcAddress(libopengl32, "glVertex3fv") 702 glVertex3i = doGetProcAddress(libopengl32, "glVertex3i") 703 glVertex3iv = doGetProcAddress(libopengl32, "glVertex3iv") 704 glVertex3s = doGetProcAddress(libopengl32, "glVertex3s") 705 glVertex3sv = doGetProcAddress(libopengl32, "glVertex3sv") 706 glVertex4d = doGetProcAddress(libopengl32, "glVertex4d") 707 glVertex4dv = doGetProcAddress(libopengl32, "glVertex4dv") 708 glVertex4f = doGetProcAddress(libopengl32, "glVertex4f") 709 glVertex4fv = doGetProcAddress(libopengl32, "glVertex4fv") 710 glVertex4i = doGetProcAddress(libopengl32, "glVertex4i") 711 glVertex4iv = doGetProcAddress(libopengl32, "glVertex4iv") 712 glVertex4s = doGetProcAddress(libopengl32, "glVertex4s") 713 glVertex4sv = doGetProcAddress(libopengl32, "glVertex4sv") 714 glVertexPointer = doGetProcAddress(libopengl32, "glVertexPointer") 715 glViewport = doGetProcAddress(libopengl32, "glViewport") 716 wglCopyContext = doGetProcAddress(libopengl32, "wglCopyContext") 717 wglCreateContext = doGetProcAddress(libopengl32, "wglCreateContext") 718 wglCreateLayerContext = doGetProcAddress(libopengl32, "wglCreateLayerContext") 719 wglDeleteContext = doGetProcAddress(libopengl32, "wglDeleteContext") 720 wglDescribeLayerPlane = doGetProcAddress(libopengl32, "wglDescribeLayerPlane") 721 wglGetCurrentContext = doGetProcAddress(libopengl32, "wglGetCurrentContext") 722 wglGetCurrentDC = doGetProcAddress(libopengl32, "wglGetCurrentDC") 723 wglGetLayerPaletteEntries = doGetProcAddress(libopengl32, "wglGetLayerPaletteEntries") 724 wglGetProcAddress = doGetProcAddress(libopengl32, "wglGetProcAddress") 725 wglMakeCurrent = doGetProcAddress(libopengl32, "wglMakeCurrent") 726 wglRealizeLayerPalette = doGetProcAddress(libopengl32, "wglRealizeLayerPalette") 727 wglSetLayerPaletteEntries = doGetProcAddress(libopengl32, "wglSetLayerPaletteEntries") 728 wglShareLists = doGetProcAddress(libopengl32, "wglShareLists") 729 wglSwapLayerBuffers = doGetProcAddress(libopengl32, "wglSwapLayerBuffers") 730 wglSwapMultipleBuffers = doGetProcAddress(libopengl32, "wglSwapMultipleBuffers") 731 wglUseFontBitmaps = doGetProcAddress(libopengl32, "wglUseFontBitmapsW") 732 wglUseFontOutlines = doGetProcAddress(libopengl32, "wglUseFontOutlinesW") 733 glDebugEntry = doGetProcAddress(libopengl32, "glDebugEntry") 734 wglChoosePixelFormat = doGetProcAddress(libopengl32, "wglChoosePixelFormat") 735 wglDescribePixelFormat = doGetProcAddress(libopengl32, "wglDescribePixelFormat") 736 wglGetPixelFormat = doGetProcAddress(libopengl32, "wglGetPixelFormat") 737 wglSetPixelFormat = doGetProcAddress(libopengl32, "wglSetPixelFormat") 738 } 739 740 func GlAccum(op GLenum, value GLfloat) { 741 syscall3(glAccum, 2, 742 uintptr(op), 743 uintptr(value), 744 0) 745 } 746 747 func GlAlphaFunc(aFunc GLenum, ref GLclampf) { 748 syscall3(glAlphaFunc, 2, 749 uintptr(aFunc), 750 uintptr(ref), 751 0) 752 } 753 754 func GlAreTexturesResident(n GLsizei, textures /*const*/ *GLuint, residences *GLboolean) GLboolean { 755 ret1 := syscall3(glAreTexturesResident, 3, 756 uintptr(n), 757 uintptr(unsafe.Pointer(textures)), 758 uintptr(unsafe.Pointer(residences))) 759 return GLboolean(ret1) 760 } 761 762 func GlArrayElement(i GLint) { 763 syscall3(glArrayElement, 1, 764 uintptr(i), 765 0, 766 0) 767 } 768 769 func GlBegin(mode GLenum) { 770 syscall3(glBegin, 1, 771 uintptr(mode), 772 0, 773 0) 774 } 775 776 func GlBindTexture(target GLenum, texture GLuint) { 777 syscall3(glBindTexture, 2, 778 uintptr(target), 779 uintptr(texture), 780 0) 781 } 782 783 func GlBitmap(width GLsizei, height GLsizei, xorig GLfloat, yorig GLfloat, xmove GLfloat, ymove GLfloat, bitmap /*const*/ *GLubyte) { 784 syscall9(glBitmap, 7, 785 uintptr(width), 786 uintptr(height), 787 uintptr(xorig), 788 uintptr(yorig), 789 uintptr(xmove), 790 uintptr(ymove), 791 uintptr(unsafe.Pointer(bitmap)), 792 0, 793 0) 794 } 795 796 func GlBlendFunc(sfactor GLenum, dfactor GLenum) { 797 syscall3(glBlendFunc, 2, 798 uintptr(sfactor), 799 uintptr(dfactor), 800 0) 801 } 802 803 func GlCallList(list GLuint) { 804 syscall3(glCallList, 1, 805 uintptr(list), 806 0, 807 0) 808 } 809 810 func GlCallLists(n GLsizei, aType GLenum, lists /*const*/ uintptr) { 811 syscall3(glCallLists, 3, 812 uintptr(n), 813 uintptr(aType), 814 lists) 815 } 816 817 func GlClear(mask GLbitfield) { 818 syscall3(glClear, 1, 819 uintptr(mask), 820 0, 821 0) 822 } 823 824 func GlClearAccum(red GLfloat, green GLfloat, blue GLfloat, alpha GLfloat) { 825 syscall6(glClearAccum, 4, 826 uintptr(red), 827 uintptr(green), 828 uintptr(blue), 829 uintptr(alpha), 830 0, 831 0) 832 } 833 834 func GlClearColor(red GLclampf, green GLclampf, blue GLclampf, alpha GLclampf) { 835 syscall6(glClearColor, 4, 836 uintptr(red), 837 uintptr(green), 838 uintptr(blue), 839 uintptr(alpha), 840 0, 841 0) 842 } 843 844 func GlClearDepth(depth GLclampd) { 845 syscall3(glClearDepth, 1, 846 uintptr(depth), 847 0, 848 0) 849 } 850 851 func GlClearIndex(c GLfloat) { 852 syscall3(glClearIndex, 1, 853 uintptr(c), 854 0, 855 0) 856 } 857 858 func GlClearStencil(s GLint) { 859 syscall3(glClearStencil, 1, 860 uintptr(s), 861 0, 862 0) 863 } 864 865 func GlClipPlane(plane GLenum, equation /*const*/ *GLdouble) { 866 syscall3(glClipPlane, 2, 867 uintptr(plane), 868 uintptr(unsafe.Pointer(equation)), 869 0) 870 } 871 872 func GlColor3b(red GLbyte, green GLbyte, blue GLbyte) { 873 syscall3(glColor3b, 3, 874 uintptr(red), 875 uintptr(green), 876 uintptr(blue)) 877 } 878 879 func GlColor3bv(v /*const*/ *GLbyte) { 880 syscall3(glColor3bv, 1, 881 uintptr(unsafe.Pointer(v)), 882 0, 883 0) 884 } 885 886 func GlColor3d(red GLdouble, green GLdouble, blue GLdouble) { 887 syscall3(glColor3d, 3, 888 uintptr(red), 889 uintptr(green), 890 uintptr(blue)) 891 } 892 893 func GlColor3dv(v /*const*/ *GLdouble) { 894 syscall3(glColor3dv, 1, 895 uintptr(unsafe.Pointer(v)), 896 0, 897 0) 898 } 899 900 func GlColor3f(red GLfloat, green GLfloat, blue GLfloat) { 901 syscall3(glColor3f, 3, 902 uintptr(red), 903 uintptr(green), 904 uintptr(blue)) 905 } 906 907 func GlColor3fv(v /*const*/ *GLfloat) { 908 syscall3(glColor3fv, 1, 909 uintptr(unsafe.Pointer(v)), 910 0, 911 0) 912 } 913 914 func GlColor3i(red GLint, green GLint, blue GLint) { 915 syscall3(glColor3i, 3, 916 uintptr(red), 917 uintptr(green), 918 uintptr(blue)) 919 } 920 921 func GlColor3iv(v /*const*/ *GLint) { 922 syscall3(glColor3iv, 1, 923 uintptr(unsafe.Pointer(v)), 924 0, 925 0) 926 } 927 928 func GlColor3s(red GLshort, green GLshort, blue GLshort) { 929 syscall3(glColor3s, 3, 930 uintptr(red), 931 uintptr(green), 932 uintptr(blue)) 933 } 934 935 func GlColor3sv(v /*const*/ *GLshort) { 936 syscall3(glColor3sv, 1, 937 uintptr(unsafe.Pointer(v)), 938 0, 939 0) 940 } 941 942 func GlColor3ub(red GLubyte, green GLubyte, blue GLubyte) { 943 syscall3(glColor3ub, 3, 944 uintptr(red), 945 uintptr(green), 946 uintptr(blue)) 947 } 948 949 func GlColor3ubv(v /*const*/ *GLubyte) { 950 syscall3(glColor3ubv, 1, 951 uintptr(unsafe.Pointer(v)), 952 0, 953 0) 954 } 955 956 func GlColor3ui(red GLuint, green GLuint, blue GLuint) { 957 syscall3(glColor3ui, 3, 958 uintptr(red), 959 uintptr(green), 960 uintptr(blue)) 961 } 962 963 func GlColor3uiv(v /*const*/ *GLuint) { 964 syscall3(glColor3uiv, 1, 965 uintptr(unsafe.Pointer(v)), 966 0, 967 0) 968 } 969 970 func GlColor3us(red GLushort, green GLushort, blue GLushort) { 971 syscall3(glColor3us, 3, 972 uintptr(red), 973 uintptr(green), 974 uintptr(blue)) 975 } 976 977 func GlColor3usv(v /*const*/ *GLushort) { 978 syscall3(glColor3usv, 1, 979 uintptr(unsafe.Pointer(v)), 980 0, 981 0) 982 } 983 984 func GlColor4b(red GLbyte, green GLbyte, blue GLbyte, alpha GLbyte) { 985 syscall6(glColor4b, 4, 986 uintptr(red), 987 uintptr(green), 988 uintptr(blue), 989 uintptr(alpha), 990 0, 991 0) 992 } 993 994 func GlColor4bv(v /*const*/ *GLbyte) { 995 syscall3(glColor4bv, 1, 996 uintptr(unsafe.Pointer(v)), 997 0, 998 0) 999 } 1000 1001 func GlColor4d(red GLdouble, green GLdouble, blue GLdouble, alpha GLdouble) { 1002 syscall6(glColor4d, 4, 1003 uintptr(red), 1004 uintptr(green), 1005 uintptr(blue), 1006 uintptr(alpha), 1007 0, 1008 0) 1009 } 1010 1011 func GlColor4dv(v /*const*/ *GLdouble) { 1012 syscall3(glColor4dv, 1, 1013 uintptr(unsafe.Pointer(v)), 1014 0, 1015 0) 1016 } 1017 1018 func GlColor4f(red GLfloat, green GLfloat, blue GLfloat, alpha GLfloat) { 1019 syscall6(glColor4f, 4, 1020 uintptr(red), 1021 uintptr(green), 1022 uintptr(blue), 1023 uintptr(alpha), 1024 0, 1025 0) 1026 } 1027 1028 func GlColor4fv(v /*const*/ *GLfloat) { 1029 syscall3(glColor4fv, 1, 1030 uintptr(unsafe.Pointer(v)), 1031 0, 1032 0) 1033 } 1034 1035 func GlColor4i(red GLint, green GLint, blue GLint, alpha GLint) { 1036 syscall6(glColor4i, 4, 1037 uintptr(red), 1038 uintptr(green), 1039 uintptr(blue), 1040 uintptr(alpha), 1041 0, 1042 0) 1043 } 1044 1045 func GlColor4iv(v /*const*/ *GLint) { 1046 syscall3(glColor4iv, 1, 1047 uintptr(unsafe.Pointer(v)), 1048 0, 1049 0) 1050 } 1051 1052 func GlColor4s(red GLshort, green GLshort, blue GLshort, alpha GLshort) { 1053 syscall6(glColor4s, 4, 1054 uintptr(red), 1055 uintptr(green), 1056 uintptr(blue), 1057 uintptr(alpha), 1058 0, 1059 0) 1060 } 1061 1062 func GlColor4sv(v /*const*/ *GLshort) { 1063 syscall3(glColor4sv, 1, 1064 uintptr(unsafe.Pointer(v)), 1065 0, 1066 0) 1067 } 1068 1069 func GlColor4ub(red GLubyte, green GLubyte, blue GLubyte, alpha GLubyte) { 1070 syscall6(glColor4ub, 4, 1071 uintptr(red), 1072 uintptr(green), 1073 uintptr(blue), 1074 uintptr(alpha), 1075 0, 1076 0) 1077 } 1078 1079 func GlColor4ubv(v /*const*/ *GLubyte) { 1080 syscall3(glColor4ubv, 1, 1081 uintptr(unsafe.Pointer(v)), 1082 0, 1083 0) 1084 } 1085 1086 func GlColor4ui(red GLuint, green GLuint, blue GLuint, alpha GLuint) { 1087 syscall6(glColor4ui, 4, 1088 uintptr(red), 1089 uintptr(green), 1090 uintptr(blue), 1091 uintptr(alpha), 1092 0, 1093 0) 1094 } 1095 1096 func GlColor4uiv(v /*const*/ *GLuint) { 1097 syscall3(glColor4uiv, 1, 1098 uintptr(unsafe.Pointer(v)), 1099 0, 1100 0) 1101 } 1102 1103 func GlColor4us(red GLushort, green GLushort, blue GLushort, alpha GLushort) { 1104 syscall6(glColor4us, 4, 1105 uintptr(red), 1106 uintptr(green), 1107 uintptr(blue), 1108 uintptr(alpha), 1109 0, 1110 0) 1111 } 1112 1113 func GlColor4usv(v /*const*/ *GLushort) { 1114 syscall3(glColor4usv, 1, 1115 uintptr(unsafe.Pointer(v)), 1116 0, 1117 0) 1118 } 1119 1120 func GlColorMask(red GLboolean, green GLboolean, blue GLboolean, alpha GLboolean) { 1121 syscall6(glColorMask, 4, 1122 uintptr(red), 1123 uintptr(green), 1124 uintptr(blue), 1125 uintptr(alpha), 1126 0, 1127 0) 1128 } 1129 1130 func GlColorMaterial(face GLenum, mode GLenum) { 1131 syscall3(glColorMaterial, 2, 1132 uintptr(face), 1133 uintptr(mode), 1134 0) 1135 } 1136 1137 func GlColorPointer(size GLint, aType GLenum, stride GLsizei, pointer /*const*/ uintptr) { 1138 syscall6(glColorPointer, 4, 1139 uintptr(size), 1140 uintptr(aType), 1141 uintptr(stride), 1142 pointer, 1143 0, 1144 0) 1145 } 1146 1147 func GlCopyPixels(x GLint, y GLint, width GLsizei, height GLsizei, aType GLenum) { 1148 syscall6(glCopyPixels, 5, 1149 uintptr(x), 1150 uintptr(y), 1151 uintptr(width), 1152 uintptr(height), 1153 uintptr(aType), 1154 0) 1155 } 1156 1157 func GlCopyTexImage1D(target GLenum, level GLint, internalFormat GLenum, x GLint, y GLint, width GLsizei, border GLint) { 1158 syscall9(glCopyTexImage1D, 7, 1159 uintptr(target), 1160 uintptr(level), 1161 uintptr(internalFormat), 1162 uintptr(x), 1163 uintptr(y), 1164 uintptr(width), 1165 uintptr(border), 1166 0, 1167 0) 1168 } 1169 1170 func GlCopyTexImage2D(target GLenum, level GLint, internalFormat GLenum, x GLint, y GLint, width GLsizei, height GLsizei, border GLint) { 1171 syscall9(glCopyTexImage2D, 8, 1172 uintptr(target), 1173 uintptr(level), 1174 uintptr(internalFormat), 1175 uintptr(x), 1176 uintptr(y), 1177 uintptr(width), 1178 uintptr(height), 1179 uintptr(border), 1180 0) 1181 } 1182 1183 func GlCopyTexSubImage1D(target GLenum, level GLint, xoffset GLint, x GLint, y GLint, width GLsizei) { 1184 syscall6(glCopyTexSubImage1D, 6, 1185 uintptr(target), 1186 uintptr(level), 1187 uintptr(xoffset), 1188 uintptr(x), 1189 uintptr(y), 1190 uintptr(width)) 1191 } 1192 1193 func GlCopyTexSubImage2D(target GLenum, level GLint, xoffset GLint, yoffset GLint, x GLint, y GLint, width GLsizei, height GLsizei) { 1194 syscall9(glCopyTexSubImage2D, 8, 1195 uintptr(target), 1196 uintptr(level), 1197 uintptr(xoffset), 1198 uintptr(yoffset), 1199 uintptr(x), 1200 uintptr(y), 1201 uintptr(width), 1202 uintptr(height), 1203 0) 1204 } 1205 1206 func GlCullFace(mode GLenum) { 1207 syscall3(glCullFace, 1, 1208 uintptr(mode), 1209 0, 1210 0) 1211 } 1212 1213 func GlDeleteLists(list GLuint, aRange GLsizei) { 1214 syscall3(glDeleteLists, 2, 1215 uintptr(list), 1216 uintptr(aRange), 1217 0) 1218 } 1219 1220 func GlDeleteTextures(n GLsizei, textures /*const*/ *GLuint) { 1221 syscall3(glDeleteTextures, 2, 1222 uintptr(n), 1223 uintptr(unsafe.Pointer(textures)), 1224 0) 1225 } 1226 1227 func GlDepthFunc(aFunc GLenum) { 1228 syscall3(glDepthFunc, 1, 1229 uintptr(aFunc), 1230 0, 1231 0) 1232 } 1233 1234 func GlDepthMask(flag GLboolean) { 1235 syscall3(glDepthMask, 1, 1236 uintptr(flag), 1237 0, 1238 0) 1239 } 1240 1241 func GlDepthRange(zNear GLclampd, zFar GLclampd) { 1242 syscall3(glDepthRange, 2, 1243 uintptr(zNear), 1244 uintptr(zFar), 1245 0) 1246 } 1247 1248 func GlDisable(cap GLenum) { 1249 syscall3(glDisable, 1, 1250 uintptr(cap), 1251 0, 1252 0) 1253 } 1254 1255 func GlDisableClientState(array GLenum) { 1256 syscall3(glDisableClientState, 1, 1257 uintptr(array), 1258 0, 1259 0) 1260 } 1261 1262 func GlDrawArrays(mode GLenum, first GLint, count GLsizei) { 1263 syscall3(glDrawArrays, 3, 1264 uintptr(mode), 1265 uintptr(first), 1266 uintptr(count)) 1267 } 1268 1269 func GlDrawBuffer(mode GLenum) { 1270 syscall3(glDrawBuffer, 1, 1271 uintptr(mode), 1272 0, 1273 0) 1274 } 1275 1276 func GlDrawElements(mode GLenum, count GLsizei, aType GLenum, indices /*const*/ uintptr) { 1277 syscall6(glDrawElements, 4, 1278 uintptr(mode), 1279 uintptr(count), 1280 uintptr(aType), 1281 indices, 1282 0, 1283 0) 1284 } 1285 1286 func GlDrawPixels(width GLsizei, height GLsizei, format GLenum, aType GLenum, pixels /*const*/ uintptr) { 1287 syscall6(glDrawPixels, 5, 1288 uintptr(width), 1289 uintptr(height), 1290 uintptr(format), 1291 uintptr(aType), 1292 pixels, 1293 0) 1294 } 1295 1296 func GlEdgeFlag(flag GLboolean) { 1297 syscall3(glEdgeFlag, 1, 1298 uintptr(flag), 1299 0, 1300 0) 1301 } 1302 1303 func GlEdgeFlagPointer(stride GLsizei, pointer /*const*/ uintptr) { 1304 syscall3(glEdgeFlagPointer, 2, 1305 uintptr(stride), 1306 pointer, 1307 0) 1308 } 1309 1310 func GlEdgeFlagv(flag /*const*/ *GLboolean) { 1311 syscall3(glEdgeFlagv, 1, 1312 uintptr(unsafe.Pointer(flag)), 1313 0, 1314 0) 1315 } 1316 1317 func GlEnable(cap GLenum) { 1318 syscall3(glEnable, 1, 1319 uintptr(cap), 1320 0, 1321 0) 1322 } 1323 1324 func GlEnableClientState(array GLenum) { 1325 syscall3(glEnableClientState, 1, 1326 uintptr(array), 1327 0, 1328 0) 1329 } 1330 1331 func GlEnd() { 1332 syscall3(glEnd, 0, 1333 0, 1334 0, 1335 0) 1336 } 1337 1338 func GlEndList() { 1339 syscall3(glEndList, 0, 1340 0, 1341 0, 1342 0) 1343 } 1344 1345 func GlEvalCoord1d(u GLdouble) { 1346 syscall3(glEvalCoord1d, 1, 1347 uintptr(u), 1348 0, 1349 0) 1350 } 1351 1352 func GlEvalCoord1dv(u /*const*/ *GLdouble) { 1353 syscall3(glEvalCoord1dv, 1, 1354 uintptr(unsafe.Pointer(u)), 1355 0, 1356 0) 1357 } 1358 1359 func GlEvalCoord1f(u GLfloat) { 1360 syscall3(glEvalCoord1f, 1, 1361 uintptr(u), 1362 0, 1363 0) 1364 } 1365 1366 func GlEvalCoord1fv(u /*const*/ *GLfloat) { 1367 syscall3(glEvalCoord1fv, 1, 1368 uintptr(unsafe.Pointer(u)), 1369 0, 1370 0) 1371 } 1372 1373 func GlEvalCoord2d(u GLdouble, v GLdouble) { 1374 syscall3(glEvalCoord2d, 2, 1375 uintptr(u), 1376 uintptr(v), 1377 0) 1378 } 1379 1380 func GlEvalCoord2dv(u /*const*/ *GLdouble) { 1381 syscall3(glEvalCoord2dv, 1, 1382 uintptr(unsafe.Pointer(u)), 1383 0, 1384 0) 1385 } 1386 1387 func GlEvalCoord2f(u GLfloat, v GLfloat) { 1388 syscall3(glEvalCoord2f, 2, 1389 uintptr(u), 1390 uintptr(v), 1391 0) 1392 } 1393 1394 func GlEvalCoord2fv(u /*const*/ *GLfloat) { 1395 syscall3(glEvalCoord2fv, 1, 1396 uintptr(unsafe.Pointer(u)), 1397 0, 1398 0) 1399 } 1400 1401 func GlEvalMesh1(mode GLenum, i1 GLint, i2 GLint) { 1402 syscall3(glEvalMesh1, 3, 1403 uintptr(mode), 1404 uintptr(i1), 1405 uintptr(i2)) 1406 } 1407 1408 func GlEvalMesh2(mode GLenum, i1 GLint, i2 GLint, j1 GLint, j2 GLint) { 1409 syscall6(glEvalMesh2, 5, 1410 uintptr(mode), 1411 uintptr(i1), 1412 uintptr(i2), 1413 uintptr(j1), 1414 uintptr(j2), 1415 0) 1416 } 1417 1418 func GlEvalPoint1(i GLint) { 1419 syscall3(glEvalPoint1, 1, 1420 uintptr(i), 1421 0, 1422 0) 1423 } 1424 1425 func GlEvalPoint2(i GLint, j GLint) { 1426 syscall3(glEvalPoint2, 2, 1427 uintptr(i), 1428 uintptr(j), 1429 0) 1430 } 1431 1432 func GlFeedbackBuffer(size GLsizei, aType GLenum, buffer *GLfloat) { 1433 syscall3(glFeedbackBuffer, 3, 1434 uintptr(size), 1435 uintptr(aType), 1436 uintptr(unsafe.Pointer(buffer))) 1437 } 1438 1439 func GlFinish() { 1440 syscall3(glFinish, 0, 1441 0, 1442 0, 1443 0) 1444 } 1445 1446 func GlFlush() { 1447 syscall3(glFlush, 0, 1448 0, 1449 0, 1450 0) 1451 } 1452 1453 func GlFogf(pname GLenum, param GLfloat) { 1454 syscall3(glFogf, 2, 1455 uintptr(pname), 1456 uintptr(param), 1457 0) 1458 } 1459 1460 func GlFogfv(pname GLenum, params /*const*/ *GLfloat) { 1461 syscall3(glFogfv, 2, 1462 uintptr(pname), 1463 uintptr(unsafe.Pointer(params)), 1464 0) 1465 } 1466 1467 func GlFogi(pname GLenum, param GLint) { 1468 syscall3(glFogi, 2, 1469 uintptr(pname), 1470 uintptr(param), 1471 0) 1472 } 1473 1474 func GlFogiv(pname GLenum, params /*const*/ *GLint) { 1475 syscall3(glFogiv, 2, 1476 uintptr(pname), 1477 uintptr(unsafe.Pointer(params)), 1478 0) 1479 } 1480 1481 func GlFrontFace(mode GLenum) { 1482 syscall3(glFrontFace, 1, 1483 uintptr(mode), 1484 0, 1485 0) 1486 } 1487 1488 func GlFrustum(left GLdouble, right GLdouble, bottom GLdouble, top GLdouble, zNear GLdouble, zFar GLdouble) { 1489 syscall6(glFrustum, 6, 1490 uintptr(left), 1491 uintptr(right), 1492 uintptr(bottom), 1493 uintptr(top), 1494 uintptr(zNear), 1495 uintptr(zFar)) 1496 } 1497 1498 func GlGenLists(aRange GLsizei) GLuint { 1499 ret1 := syscall3(glGenLists, 1, 1500 uintptr(aRange), 1501 0, 1502 0) 1503 return GLuint(ret1) 1504 } 1505 1506 func GlGenTextures(n GLsizei, textures *GLuint) { 1507 syscall3(glGenTextures, 2, 1508 uintptr(n), 1509 uintptr(unsafe.Pointer(textures)), 1510 0) 1511 } 1512 1513 func GlGetBooleanv(pname GLenum, params *GLboolean) { 1514 syscall3(glGetBooleanv, 2, 1515 uintptr(pname), 1516 uintptr(unsafe.Pointer(params)), 1517 0) 1518 } 1519 1520 func GlGetClipPlane(plane GLenum, equation *GLdouble) { 1521 syscall3(glGetClipPlane, 2, 1522 uintptr(plane), 1523 uintptr(unsafe.Pointer(equation)), 1524 0) 1525 } 1526 1527 func GlGetDoublev(pname GLenum, params *GLdouble) { 1528 syscall3(glGetDoublev, 2, 1529 uintptr(pname), 1530 uintptr(unsafe.Pointer(params)), 1531 0) 1532 } 1533 1534 func GlGetError() GLenum { 1535 ret1 := syscall3(glGetError, 0, 1536 0, 1537 0, 1538 0) 1539 return GLenum(ret1) 1540 } 1541 1542 func GlGetFloatv(pname GLenum, params *GLfloat) { 1543 syscall3(glGetFloatv, 2, 1544 uintptr(pname), 1545 uintptr(unsafe.Pointer(params)), 1546 0) 1547 } 1548 1549 func GlGetIntegerv(pname GLenum, params *GLint) { 1550 syscall3(glGetIntegerv, 2, 1551 uintptr(pname), 1552 uintptr(unsafe.Pointer(params)), 1553 0) 1554 } 1555 1556 func GlGetLightfv(light GLenum, pname GLenum, params *GLfloat) { 1557 syscall3(glGetLightfv, 3, 1558 uintptr(light), 1559 uintptr(pname), 1560 uintptr(unsafe.Pointer(params))) 1561 } 1562 1563 func GlGetLightiv(light GLenum, pname GLenum, params *GLint) { 1564 syscall3(glGetLightiv, 3, 1565 uintptr(light), 1566 uintptr(pname), 1567 uintptr(unsafe.Pointer(params))) 1568 } 1569 1570 func GlGetMapdv(target GLenum, query GLenum, v *GLdouble) { 1571 syscall3(glGetMapdv, 3, 1572 uintptr(target), 1573 uintptr(query), 1574 uintptr(unsafe.Pointer(v))) 1575 } 1576 1577 func GlGetMapfv(target GLenum, query GLenum, v *GLfloat) { 1578 syscall3(glGetMapfv, 3, 1579 uintptr(target), 1580 uintptr(query), 1581 uintptr(unsafe.Pointer(v))) 1582 } 1583 1584 func GlGetMapiv(target GLenum, query GLenum, v *GLint) { 1585 syscall3(glGetMapiv, 3, 1586 uintptr(target), 1587 uintptr(query), 1588 uintptr(unsafe.Pointer(v))) 1589 } 1590 1591 func GlGetMaterialfv(face GLenum, pname GLenum, params *GLfloat) { 1592 syscall3(glGetMaterialfv, 3, 1593 uintptr(face), 1594 uintptr(pname), 1595 uintptr(unsafe.Pointer(params))) 1596 } 1597 1598 func GlGetMaterialiv(face GLenum, pname GLenum, params *GLint) { 1599 syscall3(glGetMaterialiv, 3, 1600 uintptr(face), 1601 uintptr(pname), 1602 uintptr(unsafe.Pointer(params))) 1603 } 1604 1605 func GlGetPixelMapfv(aMap GLenum, values *GLfloat) { 1606 syscall3(glGetPixelMapfv, 2, 1607 uintptr(aMap), 1608 uintptr(unsafe.Pointer(values)), 1609 0) 1610 } 1611 1612 func GlGetPixelMapuiv(aMap GLenum, values *GLuint) { 1613 syscall3(glGetPixelMapuiv, 2, 1614 uintptr(aMap), 1615 uintptr(unsafe.Pointer(values)), 1616 0) 1617 } 1618 1619 func GlGetPixelMapusv(aMap GLenum, values *GLushort) { 1620 syscall3(glGetPixelMapusv, 2, 1621 uintptr(aMap), 1622 uintptr(unsafe.Pointer(values)), 1623 0) 1624 } 1625 1626 func GlGetPointerv(pname GLenum, params uintptr) { 1627 syscall3(glGetPointerv, 2, 1628 uintptr(pname), 1629 params, 1630 0) 1631 } 1632 1633 func GlGetPolygonStipple(mask *GLubyte) { 1634 syscall3(glGetPolygonStipple, 1, 1635 uintptr(unsafe.Pointer(mask)), 1636 0, 1637 0) 1638 } 1639 1640 func GlGetTexEnvfv(target GLenum, pname GLenum, params *GLfloat) { 1641 syscall3(glGetTexEnvfv, 3, 1642 uintptr(target), 1643 uintptr(pname), 1644 uintptr(unsafe.Pointer(params))) 1645 } 1646 1647 func GlGetTexEnviv(target GLenum, pname GLenum, params *GLint) { 1648 syscall3(glGetTexEnviv, 3, 1649 uintptr(target), 1650 uintptr(pname), 1651 uintptr(unsafe.Pointer(params))) 1652 } 1653 1654 func GlGetTexGendv(coord GLenum, pname GLenum, params *GLdouble) { 1655 syscall3(glGetTexGendv, 3, 1656 uintptr(coord), 1657 uintptr(pname), 1658 uintptr(unsafe.Pointer(params))) 1659 } 1660 1661 func GlGetTexGenfv(coord GLenum, pname GLenum, params *GLfloat) { 1662 syscall3(glGetTexGenfv, 3, 1663 uintptr(coord), 1664 uintptr(pname), 1665 uintptr(unsafe.Pointer(params))) 1666 } 1667 1668 func GlGetTexGeniv(coord GLenum, pname GLenum, params *GLint) { 1669 syscall3(glGetTexGeniv, 3, 1670 uintptr(coord), 1671 uintptr(pname), 1672 uintptr(unsafe.Pointer(params))) 1673 } 1674 1675 func GlGetTexImage(target GLenum, level GLint, format GLenum, aType GLenum, pixels uintptr) { 1676 syscall6(glGetTexImage, 5, 1677 uintptr(target), 1678 uintptr(level), 1679 uintptr(format), 1680 uintptr(aType), 1681 pixels, 1682 0) 1683 } 1684 1685 func GlGetTexLevelParameterfv(target GLenum, level GLint, pname GLenum, params *GLfloat) { 1686 syscall6(glGetTexLevelParameterfv, 4, 1687 uintptr(target), 1688 uintptr(level), 1689 uintptr(pname), 1690 uintptr(unsafe.Pointer(params)), 1691 0, 1692 0) 1693 } 1694 1695 func GlGetTexLevelParameteriv(target GLenum, level GLint, pname GLenum, params *GLint) { 1696 syscall6(glGetTexLevelParameteriv, 4, 1697 uintptr(target), 1698 uintptr(level), 1699 uintptr(pname), 1700 uintptr(unsafe.Pointer(params)), 1701 0, 1702 0) 1703 } 1704 1705 func GlGetTexParameterfv(target GLenum, pname GLenum, params *GLfloat) { 1706 syscall3(glGetTexParameterfv, 3, 1707 uintptr(target), 1708 uintptr(pname), 1709 uintptr(unsafe.Pointer(params))) 1710 } 1711 1712 func GlGetTexParameteriv(target GLenum, pname GLenum, params *GLint) { 1713 syscall3(glGetTexParameteriv, 3, 1714 uintptr(target), 1715 uintptr(pname), 1716 uintptr(unsafe.Pointer(params))) 1717 } 1718 1719 func GlHint(target GLenum, mode GLenum) { 1720 syscall3(glHint, 2, 1721 uintptr(target), 1722 uintptr(mode), 1723 0) 1724 } 1725 1726 func GlIndexMask(mask GLuint) { 1727 syscall3(glIndexMask, 1, 1728 uintptr(mask), 1729 0, 1730 0) 1731 } 1732 1733 func GlIndexPointer(aType GLenum, stride GLsizei, pointer /*const*/ uintptr) { 1734 syscall3(glIndexPointer, 3, 1735 uintptr(aType), 1736 uintptr(stride), 1737 pointer) 1738 } 1739 1740 func GlIndexd(c GLdouble) { 1741 syscall3(glIndexd, 1, 1742 uintptr(c), 1743 0, 1744 0) 1745 } 1746 1747 func GlIndexdv(c /*const*/ *GLdouble) { 1748 syscall3(glIndexdv, 1, 1749 uintptr(unsafe.Pointer(c)), 1750 0, 1751 0) 1752 } 1753 1754 func GlIndexf(c GLfloat) { 1755 syscall3(glIndexf, 1, 1756 uintptr(c), 1757 0, 1758 0) 1759 } 1760 1761 func GlIndexfv(c /*const*/ *GLfloat) { 1762 syscall3(glIndexfv, 1, 1763 uintptr(unsafe.Pointer(c)), 1764 0, 1765 0) 1766 } 1767 1768 func GlIndexi(c GLint) { 1769 syscall3(glIndexi, 1, 1770 uintptr(c), 1771 0, 1772 0) 1773 } 1774 1775 func GlIndexiv(c /*const*/ *GLint) { 1776 syscall3(glIndexiv, 1, 1777 uintptr(unsafe.Pointer(c)), 1778 0, 1779 0) 1780 } 1781 1782 func GlIndexs(c GLshort) { 1783 syscall3(glIndexs, 1, 1784 uintptr(c), 1785 0, 1786 0) 1787 } 1788 1789 func GlIndexsv(c /*const*/ *GLshort) { 1790 syscall3(glIndexsv, 1, 1791 uintptr(unsafe.Pointer(c)), 1792 0, 1793 0) 1794 } 1795 1796 func GlIndexub(c GLubyte) { 1797 syscall3(glIndexub, 1, 1798 uintptr(c), 1799 0, 1800 0) 1801 } 1802 1803 func GlIndexubv(c /*const*/ *GLubyte) { 1804 syscall3(glIndexubv, 1, 1805 uintptr(unsafe.Pointer(c)), 1806 0, 1807 0) 1808 } 1809 1810 func GlInitNames() { 1811 syscall3(glInitNames, 0, 1812 0, 1813 0, 1814 0) 1815 } 1816 1817 func GlInterleavedArrays(format GLenum, stride GLsizei, pointer /*const*/ uintptr) { 1818 syscall3(glInterleavedArrays, 3, 1819 uintptr(format), 1820 uintptr(stride), 1821 pointer) 1822 } 1823 1824 func GlIsEnabled(cap GLenum) GLboolean { 1825 ret1 := syscall3(glIsEnabled, 1, 1826 uintptr(cap), 1827 0, 1828 0) 1829 return GLboolean(ret1) 1830 } 1831 1832 func GlIsList(list GLuint) GLboolean { 1833 ret1 := syscall3(glIsList, 1, 1834 uintptr(list), 1835 0, 1836 0) 1837 return GLboolean(ret1) 1838 } 1839 1840 func GlIsTexture(texture GLuint) GLboolean { 1841 ret1 := syscall3(glIsTexture, 1, 1842 uintptr(texture), 1843 0, 1844 0) 1845 return GLboolean(ret1) 1846 } 1847 1848 func GlLightModelf(pname GLenum, param GLfloat) { 1849 syscall3(glLightModelf, 2, 1850 uintptr(pname), 1851 uintptr(param), 1852 0) 1853 } 1854 1855 func GlLightModelfv(pname GLenum, params /*const*/ *GLfloat) { 1856 syscall3(glLightModelfv, 2, 1857 uintptr(pname), 1858 uintptr(unsafe.Pointer(params)), 1859 0) 1860 } 1861 1862 func GlLightModeli(pname GLenum, param GLint) { 1863 syscall3(glLightModeli, 2, 1864 uintptr(pname), 1865 uintptr(param), 1866 0) 1867 } 1868 1869 func GlLightModeliv(pname GLenum, params /*const*/ *GLint) { 1870 syscall3(glLightModeliv, 2, 1871 uintptr(pname), 1872 uintptr(unsafe.Pointer(params)), 1873 0) 1874 } 1875 1876 func GlLightf(light GLenum, pname GLenum, param GLfloat) { 1877 syscall3(glLightf, 3, 1878 uintptr(light), 1879 uintptr(pname), 1880 uintptr(param)) 1881 } 1882 1883 func GlLightfv(light GLenum, pname GLenum, params /*const*/ *GLfloat) { 1884 syscall3(glLightfv, 3, 1885 uintptr(light), 1886 uintptr(pname), 1887 uintptr(unsafe.Pointer(params))) 1888 } 1889 1890 func GlLighti(light GLenum, pname GLenum, param GLint) { 1891 syscall3(glLighti, 3, 1892 uintptr(light), 1893 uintptr(pname), 1894 uintptr(param)) 1895 } 1896 1897 func GlLightiv(light GLenum, pname GLenum, params /*const*/ *GLint) { 1898 syscall3(glLightiv, 3, 1899 uintptr(light), 1900 uintptr(pname), 1901 uintptr(unsafe.Pointer(params))) 1902 } 1903 1904 func GlLineStipple(factor GLint, pattern GLushort) { 1905 syscall3(glLineStipple, 2, 1906 uintptr(factor), 1907 uintptr(pattern), 1908 0) 1909 } 1910 1911 func GlLineWidth(width GLfloat) { 1912 syscall3(glLineWidth, 1, 1913 uintptr(width), 1914 0, 1915 0) 1916 } 1917 1918 func GlListBase(base GLuint) { 1919 syscall3(glListBase, 1, 1920 uintptr(base), 1921 0, 1922 0) 1923 } 1924 1925 func GlLoadIdentity() { 1926 syscall3(glLoadIdentity, 0, 1927 0, 1928 0, 1929 0) 1930 } 1931 1932 func GlLoadMatrixd(m /*const*/ *GLdouble) { 1933 syscall3(glLoadMatrixd, 1, 1934 uintptr(unsafe.Pointer(m)), 1935 0, 1936 0) 1937 } 1938 1939 func GlLoadMatrixf(m /*const*/ *GLfloat) { 1940 syscall3(glLoadMatrixf, 1, 1941 uintptr(unsafe.Pointer(m)), 1942 0, 1943 0) 1944 } 1945 1946 func GlLoadName(name GLuint) { 1947 syscall3(glLoadName, 1, 1948 uintptr(name), 1949 0, 1950 0) 1951 } 1952 1953 func GlLogicOp(opcode GLenum) { 1954 syscall3(glLogicOp, 1, 1955 uintptr(opcode), 1956 0, 1957 0) 1958 } 1959 1960 func GlMap1d(target GLenum, u1 GLdouble, u2 GLdouble, stride GLint, order GLint, points /*const*/ *GLdouble) { 1961 syscall6(glMap1d, 6, 1962 uintptr(target), 1963 uintptr(u1), 1964 uintptr(u2), 1965 uintptr(stride), 1966 uintptr(order), 1967 uintptr(unsafe.Pointer(points))) 1968 } 1969 1970 func GlMap1f(target GLenum, u1 GLfloat, u2 GLfloat, stride GLint, order GLint, points /*const*/ *GLfloat) { 1971 syscall6(glMap1f, 6, 1972 uintptr(target), 1973 uintptr(u1), 1974 uintptr(u2), 1975 uintptr(stride), 1976 uintptr(order), 1977 uintptr(unsafe.Pointer(points))) 1978 } 1979 1980 func GlMap2d(target GLenum, u1 GLdouble, u2 GLdouble, ustride GLint, uorder GLint, v1 GLdouble, v2 GLdouble, vstride GLint, vorder GLint, points /*const*/ *GLdouble) { 1981 syscall12(glMap2d, 10, 1982 uintptr(target), 1983 uintptr(u1), 1984 uintptr(u2), 1985 uintptr(ustride), 1986 uintptr(uorder), 1987 uintptr(v1), 1988 uintptr(v2), 1989 uintptr(vstride), 1990 uintptr(vorder), 1991 uintptr(unsafe.Pointer(points)), 1992 0, 1993 0) 1994 } 1995 1996 func GlMap2f(target GLenum, u1 GLfloat, u2 GLfloat, ustride GLint, uorder GLint, v1 GLfloat, v2 GLfloat, vstride GLint, vorder GLint, points /*const*/ *GLfloat) { 1997 syscall12(glMap2f, 10, 1998 uintptr(target), 1999 uintptr(u1), 2000 uintptr(u2), 2001 uintptr(ustride), 2002 uintptr(uorder), 2003 uintptr(v1), 2004 uintptr(v2), 2005 uintptr(vstride), 2006 uintptr(vorder), 2007 uintptr(unsafe.Pointer(points)), 2008 0, 2009 0) 2010 } 2011 2012 func GlMapGrid1d(un GLint, u1 GLdouble, u2 GLdouble) { 2013 syscall3(glMapGrid1d, 3, 2014 uintptr(un), 2015 uintptr(u1), 2016 uintptr(u2)) 2017 } 2018 2019 func GlMapGrid1f(un GLint, u1 GLfloat, u2 GLfloat) { 2020 syscall3(glMapGrid1f, 3, 2021 uintptr(un), 2022 uintptr(u1), 2023 uintptr(u2)) 2024 } 2025 2026 func GlMapGrid2d(un GLint, u1 GLdouble, u2 GLdouble, vn GLint, v1 GLdouble, v2 GLdouble) { 2027 syscall6(glMapGrid2d, 6, 2028 uintptr(un), 2029 uintptr(u1), 2030 uintptr(u2), 2031 uintptr(vn), 2032 uintptr(v1), 2033 uintptr(v2)) 2034 } 2035 2036 func GlMapGrid2f(un GLint, u1 GLfloat, u2 GLfloat, vn GLint, v1 GLfloat, v2 GLfloat) { 2037 syscall6(glMapGrid2f, 6, 2038 uintptr(un), 2039 uintptr(u1), 2040 uintptr(u2), 2041 uintptr(vn), 2042 uintptr(v1), 2043 uintptr(v2)) 2044 } 2045 2046 func GlMaterialf(face GLenum, pname GLenum, param GLfloat) { 2047 syscall3(glMaterialf, 3, 2048 uintptr(face), 2049 uintptr(pname), 2050 uintptr(param)) 2051 } 2052 2053 func GlMaterialfv(face GLenum, pname GLenum, params /*const*/ *GLfloat) { 2054 syscall3(glMaterialfv, 3, 2055 uintptr(face), 2056 uintptr(pname), 2057 uintptr(unsafe.Pointer(params))) 2058 } 2059 2060 func GlMateriali(face GLenum, pname GLenum, param GLint) { 2061 syscall3(glMateriali, 3, 2062 uintptr(face), 2063 uintptr(pname), 2064 uintptr(param)) 2065 } 2066 2067 func GlMaterialiv(face GLenum, pname GLenum, params /*const*/ *GLint) { 2068 syscall3(glMaterialiv, 3, 2069 uintptr(face), 2070 uintptr(pname), 2071 uintptr(unsafe.Pointer(params))) 2072 } 2073 2074 func GlMatrixMode(mode GLenum) { 2075 syscall3(glMatrixMode, 1, 2076 uintptr(mode), 2077 0, 2078 0) 2079 } 2080 2081 func GlMultMatrixd(m /*const*/ *GLdouble) { 2082 syscall3(glMultMatrixd, 1, 2083 uintptr(unsafe.Pointer(m)), 2084 0, 2085 0) 2086 } 2087 2088 func GlMultMatrixf(m /*const*/ *GLfloat) { 2089 syscall3(glMultMatrixf, 1, 2090 uintptr(unsafe.Pointer(m)), 2091 0, 2092 0) 2093 } 2094 2095 func GlNewList(list GLuint, mode GLenum) { 2096 syscall3(glNewList, 2, 2097 uintptr(list), 2098 uintptr(mode), 2099 0) 2100 } 2101 2102 func GlNormal3b(nx GLbyte, ny GLbyte, nz GLbyte) { 2103 syscall3(glNormal3b, 3, 2104 uintptr(nx), 2105 uintptr(ny), 2106 uintptr(nz)) 2107 } 2108 2109 func GlNormal3bv(v /*const*/ *GLbyte) { 2110 syscall3(glNormal3bv, 1, 2111 uintptr(unsafe.Pointer(v)), 2112 0, 2113 0) 2114 } 2115 2116 func GlNormal3d(nx GLdouble, ny GLdouble, nz GLdouble) { 2117 syscall3(glNormal3d, 3, 2118 uintptr(nx), 2119 uintptr(ny), 2120 uintptr(nz)) 2121 } 2122 2123 func GlNormal3dv(v /*const*/ *GLdouble) { 2124 syscall3(glNormal3dv, 1, 2125 uintptr(unsafe.Pointer(v)), 2126 0, 2127 0) 2128 } 2129 2130 func GlNormal3f(nx GLfloat, ny GLfloat, nz GLfloat) { 2131 syscall3(glNormal3f, 3, 2132 uintptr(nx), 2133 uintptr(ny), 2134 uintptr(nz)) 2135 } 2136 2137 func GlNormal3fv(v /*const*/ *GLfloat) { 2138 syscall3(glNormal3fv, 1, 2139 uintptr(unsafe.Pointer(v)), 2140 0, 2141 0) 2142 } 2143 2144 func GlNormal3i(nx GLint, ny GLint, nz GLint) { 2145 syscall3(glNormal3i, 3, 2146 uintptr(nx), 2147 uintptr(ny), 2148 uintptr(nz)) 2149 } 2150 2151 func GlNormal3iv(v /*const*/ *GLint) { 2152 syscall3(glNormal3iv, 1, 2153 uintptr(unsafe.Pointer(v)), 2154 0, 2155 0) 2156 } 2157 2158 func GlNormal3s(nx GLshort, ny GLshort, nz GLshort) { 2159 syscall3(glNormal3s, 3, 2160 uintptr(nx), 2161 uintptr(ny), 2162 uintptr(nz)) 2163 } 2164 2165 func GlNormal3sv(v /*const*/ *GLshort) { 2166 syscall3(glNormal3sv, 1, 2167 uintptr(unsafe.Pointer(v)), 2168 0, 2169 0) 2170 } 2171 2172 func GlNormalPointer(aType GLenum, stride GLsizei, pointer /*const*/ uintptr) { 2173 syscall3(glNormalPointer, 3, 2174 uintptr(aType), 2175 uintptr(stride), 2176 pointer) 2177 } 2178 2179 func GlOrtho(left GLdouble, right GLdouble, bottom GLdouble, top GLdouble, zNear GLdouble, zFar GLdouble) { 2180 syscall6(glOrtho, 6, 2181 uintptr(left), 2182 uintptr(right), 2183 uintptr(bottom), 2184 uintptr(top), 2185 uintptr(zNear), 2186 uintptr(zFar)) 2187 } 2188 2189 func GlPassThrough(token GLfloat) { 2190 syscall3(glPassThrough, 1, 2191 uintptr(token), 2192 0, 2193 0) 2194 } 2195 2196 func GlPixelMapfv(aMap GLenum, mapsize GLsizei, values /*const*/ *GLfloat) { 2197 syscall3(glPixelMapfv, 3, 2198 uintptr(aMap), 2199 uintptr(mapsize), 2200 uintptr(unsafe.Pointer(values))) 2201 } 2202 2203 func GlPixelMapuiv(aMap GLenum, mapsize GLsizei, values /*const*/ *GLuint) { 2204 syscall3(glPixelMapuiv, 3, 2205 uintptr(aMap), 2206 uintptr(mapsize), 2207 uintptr(unsafe.Pointer(values))) 2208 } 2209 2210 func GlPixelMapusv(aMap GLenum, mapsize GLsizei, values /*const*/ *GLushort) { 2211 syscall3(glPixelMapusv, 3, 2212 uintptr(aMap), 2213 uintptr(mapsize), 2214 uintptr(unsafe.Pointer(values))) 2215 } 2216 2217 func GlPixelStoref(pname GLenum, param GLfloat) { 2218 syscall3(glPixelStoref, 2, 2219 uintptr(pname), 2220 uintptr(param), 2221 0) 2222 } 2223 2224 func GlPixelStorei(pname GLenum, param GLint) { 2225 syscall3(glPixelStorei, 2, 2226 uintptr(pname), 2227 uintptr(param), 2228 0) 2229 } 2230 2231 func GlPixelTransferf(pname GLenum, param GLfloat) { 2232 syscall3(glPixelTransferf, 2, 2233 uintptr(pname), 2234 uintptr(param), 2235 0) 2236 } 2237 2238 func GlPixelTransferi(pname GLenum, param GLint) { 2239 syscall3(glPixelTransferi, 2, 2240 uintptr(pname), 2241 uintptr(param), 2242 0) 2243 } 2244 2245 func GlPixelZoom(xfactor GLfloat, yfactor GLfloat) { 2246 syscall3(glPixelZoom, 2, 2247 uintptr(xfactor), 2248 uintptr(yfactor), 2249 0) 2250 } 2251 2252 func GlPointSize(size GLfloat) { 2253 syscall3(glPointSize, 1, 2254 uintptr(size), 2255 0, 2256 0) 2257 } 2258 2259 func GlPolygonMode(face GLenum, mode GLenum) { 2260 syscall3(glPolygonMode, 2, 2261 uintptr(face), 2262 uintptr(mode), 2263 0) 2264 } 2265 2266 func GlPolygonOffset(factor GLfloat, units GLfloat) { 2267 syscall3(glPolygonOffset, 2, 2268 uintptr(factor), 2269 uintptr(units), 2270 0) 2271 } 2272 2273 func GlPolygonStipple(mask /*const*/ *GLubyte) { 2274 syscall3(glPolygonStipple, 1, 2275 uintptr(unsafe.Pointer(mask)), 2276 0, 2277 0) 2278 } 2279 2280 func GlPopAttrib() { 2281 syscall3(glPopAttrib, 0, 2282 0, 2283 0, 2284 0) 2285 } 2286 2287 func GlPopClientAttrib() { 2288 syscall3(glPopClientAttrib, 0, 2289 0, 2290 0, 2291 0) 2292 } 2293 2294 func GlPopMatrix() { 2295 syscall3(glPopMatrix, 0, 2296 0, 2297 0, 2298 0) 2299 } 2300 2301 func GlPopName() { 2302 syscall3(glPopName, 0, 2303 0, 2304 0, 2305 0) 2306 } 2307 2308 func GlPrioritizeTextures(n GLsizei, textures /*const*/ *GLuint, priorities /*const*/ *GLclampf) { 2309 syscall3(glPrioritizeTextures, 3, 2310 uintptr(n), 2311 uintptr(unsafe.Pointer(textures)), 2312 uintptr(unsafe.Pointer(priorities))) 2313 } 2314 2315 func GlPushAttrib(mask GLbitfield) { 2316 syscall3(glPushAttrib, 1, 2317 uintptr(mask), 2318 0, 2319 0) 2320 } 2321 2322 func GlPushClientAttrib(mask GLbitfield) { 2323 syscall3(glPushClientAttrib, 1, 2324 uintptr(mask), 2325 0, 2326 0) 2327 } 2328 2329 func GlPushMatrix() { 2330 syscall3(glPushMatrix, 0, 2331 0, 2332 0, 2333 0) 2334 } 2335 2336 func GlPushName(name GLuint) { 2337 syscall3(glPushName, 1, 2338 uintptr(name), 2339 0, 2340 0) 2341 } 2342 2343 func GlRasterPos2d(x GLdouble, y GLdouble) { 2344 syscall3(glRasterPos2d, 2, 2345 uintptr(x), 2346 uintptr(y), 2347 0) 2348 } 2349 2350 func GlRasterPos2dv(v /*const*/ *GLdouble) { 2351 syscall3(glRasterPos2dv, 1, 2352 uintptr(unsafe.Pointer(v)), 2353 0, 2354 0) 2355 } 2356 2357 func GlRasterPos2f(x GLfloat, y GLfloat) { 2358 syscall3(glRasterPos2f, 2, 2359 uintptr(x), 2360 uintptr(y), 2361 0) 2362 } 2363 2364 func GlRasterPos2fv(v /*const*/ *GLfloat) { 2365 syscall3(glRasterPos2fv, 1, 2366 uintptr(unsafe.Pointer(v)), 2367 0, 2368 0) 2369 } 2370 2371 func GlRasterPos2i(x GLint, y GLint) { 2372 syscall3(glRasterPos2i, 2, 2373 uintptr(x), 2374 uintptr(y), 2375 0) 2376 } 2377 2378 func GlRasterPos2iv(v /*const*/ *GLint) { 2379 syscall3(glRasterPos2iv, 1, 2380 uintptr(unsafe.Pointer(v)), 2381 0, 2382 0) 2383 } 2384 2385 func GlRasterPos2s(x GLshort, y GLshort) { 2386 syscall3(glRasterPos2s, 2, 2387 uintptr(x), 2388 uintptr(y), 2389 0) 2390 } 2391 2392 func GlRasterPos2sv(v /*const*/ *GLshort) { 2393 syscall3(glRasterPos2sv, 1, 2394 uintptr(unsafe.Pointer(v)), 2395 0, 2396 0) 2397 } 2398 2399 func GlRasterPos3d(x GLdouble, y GLdouble, z GLdouble) { 2400 syscall3(glRasterPos3d, 3, 2401 uintptr(x), 2402 uintptr(y), 2403 uintptr(z)) 2404 } 2405 2406 func GlRasterPos3dv(v /*const*/ *GLdouble) { 2407 syscall3(glRasterPos3dv, 1, 2408 uintptr(unsafe.Pointer(v)), 2409 0, 2410 0) 2411 } 2412 2413 func GlRasterPos3f(x GLfloat, y GLfloat, z GLfloat) { 2414 syscall3(glRasterPos3f, 3, 2415 uintptr(x), 2416 uintptr(y), 2417 uintptr(z)) 2418 } 2419 2420 func GlRasterPos3fv(v /*const*/ *GLfloat) { 2421 syscall3(glRasterPos3fv, 1, 2422 uintptr(unsafe.Pointer(v)), 2423 0, 2424 0) 2425 } 2426 2427 func GlRasterPos3i(x GLint, y GLint, z GLint) { 2428 syscall3(glRasterPos3i, 3, 2429 uintptr(x), 2430 uintptr(y), 2431 uintptr(z)) 2432 } 2433 2434 func GlRasterPos3iv(v /*const*/ *GLint) { 2435 syscall3(glRasterPos3iv, 1, 2436 uintptr(unsafe.Pointer(v)), 2437 0, 2438 0) 2439 } 2440 2441 func GlRasterPos3s(x GLshort, y GLshort, z GLshort) { 2442 syscall3(glRasterPos3s, 3, 2443 uintptr(x), 2444 uintptr(y), 2445 uintptr(z)) 2446 } 2447 2448 func GlRasterPos3sv(v /*const*/ *GLshort) { 2449 syscall3(glRasterPos3sv, 1, 2450 uintptr(unsafe.Pointer(v)), 2451 0, 2452 0) 2453 } 2454 2455 func GlRasterPos4d(x GLdouble, y GLdouble, z GLdouble, w GLdouble) { 2456 syscall6(glRasterPos4d, 4, 2457 uintptr(x), 2458 uintptr(y), 2459 uintptr(z), 2460 uintptr(w), 2461 0, 2462 0) 2463 } 2464 2465 func GlRasterPos4dv(v /*const*/ *GLdouble) { 2466 syscall3(glRasterPos4dv, 1, 2467 uintptr(unsafe.Pointer(v)), 2468 0, 2469 0) 2470 } 2471 2472 func GlRasterPos4f(x GLfloat, y GLfloat, z GLfloat, w GLfloat) { 2473 syscall6(glRasterPos4f, 4, 2474 uintptr(x), 2475 uintptr(y), 2476 uintptr(z), 2477 uintptr(w), 2478 0, 2479 0) 2480 } 2481 2482 func GlRasterPos4fv(v /*const*/ *GLfloat) { 2483 syscall3(glRasterPos4fv, 1, 2484 uintptr(unsafe.Pointer(v)), 2485 0, 2486 0) 2487 } 2488 2489 func GlRasterPos4i(x GLint, y GLint, z GLint, w GLint) { 2490 syscall6(glRasterPos4i, 4, 2491 uintptr(x), 2492 uintptr(y), 2493 uintptr(z), 2494 uintptr(w), 2495 0, 2496 0) 2497 } 2498 2499 func GlRasterPos4iv(v /*const*/ *GLint) { 2500 syscall3(glRasterPos4iv, 1, 2501 uintptr(unsafe.Pointer(v)), 2502 0, 2503 0) 2504 } 2505 2506 func GlRasterPos4s(x GLshort, y GLshort, z GLshort, w GLshort) { 2507 syscall6(glRasterPos4s, 4, 2508 uintptr(x), 2509 uintptr(y), 2510 uintptr(z), 2511 uintptr(w), 2512 0, 2513 0) 2514 } 2515 2516 func GlRasterPos4sv(v /*const*/ *GLshort) { 2517 syscall3(glRasterPos4sv, 1, 2518 uintptr(unsafe.Pointer(v)), 2519 0, 2520 0) 2521 } 2522 2523 func GlReadBuffer(mode GLenum) { 2524 syscall3(glReadBuffer, 1, 2525 uintptr(mode), 2526 0, 2527 0) 2528 } 2529 2530 func GlReadPixels(x GLint, y GLint, width GLsizei, height GLsizei, format GLenum, aType GLenum, pixels uintptr) { 2531 syscall9(glReadPixels, 7, 2532 uintptr(x), 2533 uintptr(y), 2534 uintptr(width), 2535 uintptr(height), 2536 uintptr(format), 2537 uintptr(aType), 2538 pixels, 2539 0, 2540 0) 2541 } 2542 2543 func GlRectd(x1 GLdouble, y1 GLdouble, x2 GLdouble, y2 GLdouble) { 2544 syscall6(glRectd, 4, 2545 uintptr(x1), 2546 uintptr(y1), 2547 uintptr(x2), 2548 uintptr(y2), 2549 0, 2550 0) 2551 } 2552 2553 func GlRectdv(v1 /*const*/ *GLdouble, v2 /*const*/ *GLdouble) { 2554 syscall3(glRectdv, 2, 2555 uintptr(unsafe.Pointer(v1)), 2556 uintptr(unsafe.Pointer(v2)), 2557 0) 2558 } 2559 2560 func GlRectf(x1 GLfloat, y1 GLfloat, x2 GLfloat, y2 GLfloat) { 2561 syscall6(glRectf, 4, 2562 uintptr(x1), 2563 uintptr(y1), 2564 uintptr(x2), 2565 uintptr(y2), 2566 0, 2567 0) 2568 } 2569 2570 func GlRectfv(v1 /*const*/ *GLfloat, v2 /*const*/ *GLfloat) { 2571 syscall3(glRectfv, 2, 2572 uintptr(unsafe.Pointer(v1)), 2573 uintptr(unsafe.Pointer(v2)), 2574 0) 2575 } 2576 2577 func GlRecti(x1 GLint, y1 GLint, x2 GLint, y2 GLint) { 2578 syscall6(glRecti, 4, 2579 uintptr(x1), 2580 uintptr(y1), 2581 uintptr(x2), 2582 uintptr(y2), 2583 0, 2584 0) 2585 } 2586 2587 func GlRectiv(v1 /*const*/ *GLint, v2 /*const*/ *GLint) { 2588 syscall3(glRectiv, 2, 2589 uintptr(unsafe.Pointer(v1)), 2590 uintptr(unsafe.Pointer(v2)), 2591 0) 2592 } 2593 2594 func GlRects(x1 GLshort, y1 GLshort, x2 GLshort, y2 GLshort) { 2595 syscall6(glRects, 4, 2596 uintptr(x1), 2597 uintptr(y1), 2598 uintptr(x2), 2599 uintptr(y2), 2600 0, 2601 0) 2602 } 2603 2604 func GlRectsv(v1 /*const*/ *GLshort, v2 /*const*/ *GLshort) { 2605 syscall3(glRectsv, 2, 2606 uintptr(unsafe.Pointer(v1)), 2607 uintptr(unsafe.Pointer(v2)), 2608 0) 2609 } 2610 2611 func GlRenderMode(mode GLenum) GLint { 2612 ret1 := syscall3(glRenderMode, 1, 2613 uintptr(mode), 2614 0, 2615 0) 2616 return GLint(ret1) 2617 } 2618 2619 func GlRotated(angle GLdouble, x GLdouble, y GLdouble, z GLdouble) { 2620 syscall6(glRotated, 4, 2621 uintptr(angle), 2622 uintptr(x), 2623 uintptr(y), 2624 uintptr(z), 2625 0, 2626 0) 2627 } 2628 2629 func GlRotatef(angle GLfloat, x GLfloat, y GLfloat, z GLfloat) { 2630 syscall6(glRotatef, 4, 2631 uintptr(angle), 2632 uintptr(x), 2633 uintptr(y), 2634 uintptr(z), 2635 0, 2636 0) 2637 } 2638 2639 func GlScaled(x GLdouble, y GLdouble, z GLdouble) { 2640 syscall3(glScaled, 3, 2641 uintptr(x), 2642 uintptr(y), 2643 uintptr(z)) 2644 } 2645 2646 func GlScalef(x GLfloat, y GLfloat, z GLfloat) { 2647 syscall3(glScalef, 3, 2648 uintptr(x), 2649 uintptr(y), 2650 uintptr(z)) 2651 } 2652 2653 func GlScissor(x GLint, y GLint, width GLsizei, height GLsizei) { 2654 syscall6(glScissor, 4, 2655 uintptr(x), 2656 uintptr(y), 2657 uintptr(width), 2658 uintptr(height), 2659 0, 2660 0) 2661 } 2662 2663 func GlSelectBuffer(size GLsizei, buffer *GLuint) { 2664 syscall3(glSelectBuffer, 2, 2665 uintptr(size), 2666 uintptr(unsafe.Pointer(buffer)), 2667 0) 2668 } 2669 2670 func GlShadeModel(mode GLenum) { 2671 syscall3(glShadeModel, 1, 2672 uintptr(mode), 2673 0, 2674 0) 2675 } 2676 2677 func GlStencilFunc(aFunc GLenum, ref GLint, mask GLuint) { 2678 syscall3(glStencilFunc, 3, 2679 uintptr(aFunc), 2680 uintptr(ref), 2681 uintptr(mask)) 2682 } 2683 2684 func GlStencilMask(mask GLuint) { 2685 syscall3(glStencilMask, 1, 2686 uintptr(mask), 2687 0, 2688 0) 2689 } 2690 2691 func GlStencilOp(fail GLenum, zfail GLenum, zpass GLenum) { 2692 syscall3(glStencilOp, 3, 2693 uintptr(fail), 2694 uintptr(zfail), 2695 uintptr(zpass)) 2696 } 2697 2698 func GlTexCoord1d(s GLdouble) { 2699 syscall3(glTexCoord1d, 1, 2700 uintptr(s), 2701 0, 2702 0) 2703 } 2704 2705 func GlTexCoord1dv(v /*const*/ *GLdouble) { 2706 syscall3(glTexCoord1dv, 1, 2707 uintptr(unsafe.Pointer(v)), 2708 0, 2709 0) 2710 } 2711 2712 func GlTexCoord1f(s GLfloat) { 2713 syscall3(glTexCoord1f, 1, 2714 uintptr(s), 2715 0, 2716 0) 2717 } 2718 2719 func GlTexCoord1fv(v /*const*/ *GLfloat) { 2720 syscall3(glTexCoord1fv, 1, 2721 uintptr(unsafe.Pointer(v)), 2722 0, 2723 0) 2724 } 2725 2726 func GlTexCoord1i(s GLint) { 2727 syscall3(glTexCoord1i, 1, 2728 uintptr(s), 2729 0, 2730 0) 2731 } 2732 2733 func GlTexCoord1iv(v /*const*/ *GLint) { 2734 syscall3(glTexCoord1iv, 1, 2735 uintptr(unsafe.Pointer(v)), 2736 0, 2737 0) 2738 } 2739 2740 func GlTexCoord1s(s GLshort) { 2741 syscall3(glTexCoord1s, 1, 2742 uintptr(s), 2743 0, 2744 0) 2745 } 2746 2747 func GlTexCoord1sv(v /*const*/ *GLshort) { 2748 syscall3(glTexCoord1sv, 1, 2749 uintptr(unsafe.Pointer(v)), 2750 0, 2751 0) 2752 } 2753 2754 func GlTexCoord2d(s GLdouble, t GLdouble) { 2755 syscall3(glTexCoord2d, 2, 2756 uintptr(s), 2757 uintptr(t), 2758 0) 2759 } 2760 2761 func GlTexCoord2dv(v /*const*/ *GLdouble) { 2762 syscall3(glTexCoord2dv, 1, 2763 uintptr(unsafe.Pointer(v)), 2764 0, 2765 0) 2766 } 2767 2768 func GlTexCoord2f(s GLfloat, t GLfloat) { 2769 syscall3(glTexCoord2f, 2, 2770 uintptr(s), 2771 uintptr(t), 2772 0) 2773 } 2774 2775 func GlTexCoord2fv(v /*const*/ *GLfloat) { 2776 syscall3(glTexCoord2fv, 1, 2777 uintptr(unsafe.Pointer(v)), 2778 0, 2779 0) 2780 } 2781 2782 func GlTexCoord2i(s GLint, t GLint) { 2783 syscall3(glTexCoord2i, 2, 2784 uintptr(s), 2785 uintptr(t), 2786 0) 2787 } 2788 2789 func GlTexCoord2iv(v /*const*/ *GLint) { 2790 syscall3(glTexCoord2iv, 1, 2791 uintptr(unsafe.Pointer(v)), 2792 0, 2793 0) 2794 } 2795 2796 func GlTexCoord2s(s GLshort, t GLshort) { 2797 syscall3(glTexCoord2s, 2, 2798 uintptr(s), 2799 uintptr(t), 2800 0) 2801 } 2802 2803 func GlTexCoord2sv(v /*const*/ *GLshort) { 2804 syscall3(glTexCoord2sv, 1, 2805 uintptr(unsafe.Pointer(v)), 2806 0, 2807 0) 2808 } 2809 2810 func GlTexCoord3d(s GLdouble, t GLdouble, r GLdouble) { 2811 syscall3(glTexCoord3d, 3, 2812 uintptr(s), 2813 uintptr(t), 2814 uintptr(r)) 2815 } 2816 2817 func GlTexCoord3dv(v /*const*/ *GLdouble) { 2818 syscall3(glTexCoord3dv, 1, 2819 uintptr(unsafe.Pointer(v)), 2820 0, 2821 0) 2822 } 2823 2824 func GlTexCoord3f(s GLfloat, t GLfloat, r GLfloat) { 2825 syscall3(glTexCoord3f, 3, 2826 uintptr(s), 2827 uintptr(t), 2828 uintptr(r)) 2829 } 2830 2831 func GlTexCoord3fv(v /*const*/ *GLfloat) { 2832 syscall3(glTexCoord3fv, 1, 2833 uintptr(unsafe.Pointer(v)), 2834 0, 2835 0) 2836 } 2837 2838 func GlTexCoord3i(s GLint, t GLint, r GLint) { 2839 syscall3(glTexCoord3i, 3, 2840 uintptr(s), 2841 uintptr(t), 2842 uintptr(r)) 2843 } 2844 2845 func GlTexCoord3iv(v /*const*/ *GLint) { 2846 syscall3(glTexCoord3iv, 1, 2847 uintptr(unsafe.Pointer(v)), 2848 0, 2849 0) 2850 } 2851 2852 func GlTexCoord3s(s GLshort, t GLshort, r GLshort) { 2853 syscall3(glTexCoord3s, 3, 2854 uintptr(s), 2855 uintptr(t), 2856 uintptr(r)) 2857 } 2858 2859 func GlTexCoord3sv(v /*const*/ *GLshort) { 2860 syscall3(glTexCoord3sv, 1, 2861 uintptr(unsafe.Pointer(v)), 2862 0, 2863 0) 2864 } 2865 2866 func GlTexCoord4d(s GLdouble, t GLdouble, r GLdouble, q GLdouble) { 2867 syscall6(glTexCoord4d, 4, 2868 uintptr(s), 2869 uintptr(t), 2870 uintptr(r), 2871 uintptr(q), 2872 0, 2873 0) 2874 } 2875 2876 func GlTexCoord4dv(v /*const*/ *GLdouble) { 2877 syscall3(glTexCoord4dv, 1, 2878 uintptr(unsafe.Pointer(v)), 2879 0, 2880 0) 2881 } 2882 2883 func GlTexCoord4f(s GLfloat, t GLfloat, r GLfloat, q GLfloat) { 2884 syscall6(glTexCoord4f, 4, 2885 uintptr(s), 2886 uintptr(t), 2887 uintptr(r), 2888 uintptr(q), 2889 0, 2890 0) 2891 } 2892 2893 func GlTexCoord4fv(v /*const*/ *GLfloat) { 2894 syscall3(glTexCoord4fv, 1, 2895 uintptr(unsafe.Pointer(v)), 2896 0, 2897 0) 2898 } 2899 2900 func GlTexCoord4i(s GLint, t GLint, r GLint, q GLint) { 2901 syscall6(glTexCoord4i, 4, 2902 uintptr(s), 2903 uintptr(t), 2904 uintptr(r), 2905 uintptr(q), 2906 0, 2907 0) 2908 } 2909 2910 func GlTexCoord4iv(v /*const*/ *GLint) { 2911 syscall3(glTexCoord4iv, 1, 2912 uintptr(unsafe.Pointer(v)), 2913 0, 2914 0) 2915 } 2916 2917 func GlTexCoord4s(s GLshort, t GLshort, r GLshort, q GLshort) { 2918 syscall6(glTexCoord4s, 4, 2919 uintptr(s), 2920 uintptr(t), 2921 uintptr(r), 2922 uintptr(q), 2923 0, 2924 0) 2925 } 2926 2927 func GlTexCoord4sv(v /*const*/ *GLshort) { 2928 syscall3(glTexCoord4sv, 1, 2929 uintptr(unsafe.Pointer(v)), 2930 0, 2931 0) 2932 } 2933 2934 func GlTexCoordPointer(size GLint, aType GLenum, stride GLsizei, pointer /*const*/ uintptr) { 2935 syscall6(glTexCoordPointer, 4, 2936 uintptr(size), 2937 uintptr(aType), 2938 uintptr(stride), 2939 pointer, 2940 0, 2941 0) 2942 } 2943 2944 func GlTexEnvf(target GLenum, pname GLenum, param GLfloat) { 2945 syscall3(glTexEnvf, 3, 2946 uintptr(target), 2947 uintptr(pname), 2948 uintptr(param)) 2949 } 2950 2951 func GlTexEnvfv(target GLenum, pname GLenum, params /*const*/ *GLfloat) { 2952 syscall3(glTexEnvfv, 3, 2953 uintptr(target), 2954 uintptr(pname), 2955 uintptr(unsafe.Pointer(params))) 2956 } 2957 2958 func GlTexEnvi(target GLenum, pname GLenum, param GLint) { 2959 syscall3(glTexEnvi, 3, 2960 uintptr(target), 2961 uintptr(pname), 2962 uintptr(param)) 2963 } 2964 2965 func GlTexEnviv(target GLenum, pname GLenum, params /*const*/ *GLint) { 2966 syscall3(glTexEnviv, 3, 2967 uintptr(target), 2968 uintptr(pname), 2969 uintptr(unsafe.Pointer(params))) 2970 } 2971 2972 func GlTexGend(coord GLenum, pname GLenum, param GLdouble) { 2973 syscall3(glTexGend, 3, 2974 uintptr(coord), 2975 uintptr(pname), 2976 uintptr(param)) 2977 } 2978 2979 func GlTexGendv(coord GLenum, pname GLenum, params /*const*/ *GLdouble) { 2980 syscall3(glTexGendv, 3, 2981 uintptr(coord), 2982 uintptr(pname), 2983 uintptr(unsafe.Pointer(params))) 2984 } 2985 2986 func GlTexGenf(coord GLenum, pname GLenum, param GLfloat) { 2987 syscall3(glTexGenf, 3, 2988 uintptr(coord), 2989 uintptr(pname), 2990 uintptr(param)) 2991 } 2992 2993 func GlTexGenfv(coord GLenum, pname GLenum, params /*const*/ *GLfloat) { 2994 syscall3(glTexGenfv, 3, 2995 uintptr(coord), 2996 uintptr(pname), 2997 uintptr(unsafe.Pointer(params))) 2998 } 2999 3000 func GlTexGeni(coord GLenum, pname GLenum, param GLint) { 3001 syscall3(glTexGeni, 3, 3002 uintptr(coord), 3003 uintptr(pname), 3004 uintptr(param)) 3005 } 3006 3007 func GlTexGeniv(coord GLenum, pname GLenum, params /*const*/ *GLint) { 3008 syscall3(glTexGeniv, 3, 3009 uintptr(coord), 3010 uintptr(pname), 3011 uintptr(unsafe.Pointer(params))) 3012 } 3013 3014 func GlTexImage1D(target GLenum, level GLint, internalformat GLint, width GLsizei, border GLint, format GLenum, aType GLenum, pixels /*const*/ uintptr) { 3015 syscall9(glTexImage1D, 8, 3016 uintptr(target), 3017 uintptr(level), 3018 uintptr(internalformat), 3019 uintptr(width), 3020 uintptr(border), 3021 uintptr(format), 3022 uintptr(aType), 3023 pixels, 3024 0) 3025 } 3026 3027 func GlTexImage2D(target GLenum, level GLint, internalformat GLint, width GLsizei, height GLsizei, border GLint, format GLenum, aType GLenum, pixels /*const*/ uintptr) { 3028 syscall9(glTexImage2D, 9, 3029 uintptr(target), 3030 uintptr(level), 3031 uintptr(internalformat), 3032 uintptr(width), 3033 uintptr(height), 3034 uintptr(border), 3035 uintptr(format), 3036 uintptr(aType), 3037 pixels) 3038 } 3039 3040 func GlTexParameterf(target GLenum, pname GLenum, param GLfloat) { 3041 syscall3(glTexParameterf, 3, 3042 uintptr(target), 3043 uintptr(pname), 3044 uintptr(param)) 3045 } 3046 3047 func GlTexParameterfv(target GLenum, pname GLenum, params /*const*/ *GLfloat) { 3048 syscall3(glTexParameterfv, 3, 3049 uintptr(target), 3050 uintptr(pname), 3051 uintptr(unsafe.Pointer(params))) 3052 } 3053 3054 func GlTexParameteri(target GLenum, pname GLenum, param GLint) { 3055 syscall3(glTexParameteri, 3, 3056 uintptr(target), 3057 uintptr(pname), 3058 uintptr(param)) 3059 } 3060 3061 func GlTexParameteriv(target GLenum, pname GLenum, params /*const*/ *GLint) { 3062 syscall3(glTexParameteriv, 3, 3063 uintptr(target), 3064 uintptr(pname), 3065 uintptr(unsafe.Pointer(params))) 3066 } 3067 3068 func GlTexSubImage1D(target GLenum, level GLint, xoffset GLint, width GLsizei, format GLenum, aType GLenum, pixels /*const*/ uintptr) { 3069 syscall9(glTexSubImage1D, 7, 3070 uintptr(target), 3071 uintptr(level), 3072 uintptr(xoffset), 3073 uintptr(width), 3074 uintptr(format), 3075 uintptr(aType), 3076 pixels, 3077 0, 3078 0) 3079 } 3080 3081 func GlTexSubImage2D(target GLenum, level GLint, xoffset GLint, yoffset GLint, width GLsizei, height GLsizei, format GLenum, aType GLenum, pixels /*const*/ uintptr) { 3082 syscall9(glTexSubImage2D, 9, 3083 uintptr(target), 3084 uintptr(level), 3085 uintptr(xoffset), 3086 uintptr(yoffset), 3087 uintptr(width), 3088 uintptr(height), 3089 uintptr(format), 3090 uintptr(aType), 3091 pixels) 3092 } 3093 3094 func GlTranslated(x GLdouble, y GLdouble, z GLdouble) { 3095 syscall3(glTranslated, 3, 3096 uintptr(x), 3097 uintptr(y), 3098 uintptr(z)) 3099 } 3100 3101 func GlTranslatef(x GLfloat, y GLfloat, z GLfloat) { 3102 syscall3(glTranslatef, 3, 3103 uintptr(x), 3104 uintptr(y), 3105 uintptr(z)) 3106 } 3107 3108 func GlVertex2d(x GLdouble, y GLdouble) { 3109 syscall3(glVertex2d, 2, 3110 uintptr(x), 3111 uintptr(y), 3112 0) 3113 } 3114 3115 func GlVertex2dv(v /*const*/ *GLdouble) { 3116 syscall3(glVertex2dv, 1, 3117 uintptr(unsafe.Pointer(v)), 3118 0, 3119 0) 3120 } 3121 3122 func GlVertex2f(x GLfloat, y GLfloat) { 3123 syscall3(glVertex2f, 2, 3124 uintptr(x), 3125 uintptr(y), 3126 0) 3127 } 3128 3129 func GlVertex2fv(v /*const*/ *GLfloat) { 3130 syscall3(glVertex2fv, 1, 3131 uintptr(unsafe.Pointer(v)), 3132 0, 3133 0) 3134 } 3135 3136 func GlVertex2i(x GLint, y GLint) { 3137 syscall3(glVertex2i, 2, 3138 uintptr(x), 3139 uintptr(y), 3140 0) 3141 } 3142 3143 func GlVertex2iv(v /*const*/ *GLint) { 3144 syscall3(glVertex2iv, 1, 3145 uintptr(unsafe.Pointer(v)), 3146 0, 3147 0) 3148 } 3149 3150 func GlVertex2s(x GLshort, y GLshort) { 3151 syscall3(glVertex2s, 2, 3152 uintptr(x), 3153 uintptr(y), 3154 0) 3155 } 3156 3157 func GlVertex2sv(v /*const*/ *GLshort) { 3158 syscall3(glVertex2sv, 1, 3159 uintptr(unsafe.Pointer(v)), 3160 0, 3161 0) 3162 } 3163 3164 func GlVertex3d(x GLdouble, y GLdouble, z GLdouble) { 3165 syscall3(glVertex3d, 3, 3166 uintptr(x), 3167 uintptr(y), 3168 uintptr(z)) 3169 } 3170 3171 func GlVertex3dv(v /*const*/ *GLdouble) { 3172 syscall3(glVertex3dv, 1, 3173 uintptr(unsafe.Pointer(v)), 3174 0, 3175 0) 3176 } 3177 3178 func GlVertex3f(x GLfloat, y GLfloat, z GLfloat) { 3179 syscall3(glVertex3f, 3, 3180 uintptr(x), 3181 uintptr(y), 3182 uintptr(z)) 3183 } 3184 3185 func GlVertex3fv(v /*const*/ *GLfloat) { 3186 syscall3(glVertex3fv, 1, 3187 uintptr(unsafe.Pointer(v)), 3188 0, 3189 0) 3190 } 3191 3192 func GlVertex3i(x GLint, y GLint, z GLint) { 3193 syscall3(glVertex3i, 3, 3194 uintptr(x), 3195 uintptr(y), 3196 uintptr(z)) 3197 } 3198 3199 func GlVertex3iv(v /*const*/ *GLint) { 3200 syscall3(glVertex3iv, 1, 3201 uintptr(unsafe.Pointer(v)), 3202 0, 3203 0) 3204 } 3205 3206 func GlVertex3s(x GLshort, y GLshort, z GLshort) { 3207 syscall3(glVertex3s, 3, 3208 uintptr(x), 3209 uintptr(y), 3210 uintptr(z)) 3211 } 3212 3213 func GlVertex3sv(v /*const*/ *GLshort) { 3214 syscall3(glVertex3sv, 1, 3215 uintptr(unsafe.Pointer(v)), 3216 0, 3217 0) 3218 } 3219 3220 func GlVertex4d(x GLdouble, y GLdouble, z GLdouble, w GLdouble) { 3221 syscall6(glVertex4d, 4, 3222 uintptr(x), 3223 uintptr(y), 3224 uintptr(z), 3225 uintptr(w), 3226 0, 3227 0) 3228 } 3229 3230 func GlVertex4dv(v /*const*/ *GLdouble) { 3231 syscall3(glVertex4dv, 1, 3232 uintptr(unsafe.Pointer(v)), 3233 0, 3234 0) 3235 } 3236 3237 func GlVertex4f(x GLfloat, y GLfloat, z GLfloat, w GLfloat) { 3238 syscall6(glVertex4f, 4, 3239 uintptr(x), 3240 uintptr(y), 3241 uintptr(z), 3242 uintptr(w), 3243 0, 3244 0) 3245 } 3246 3247 func GlVertex4fv(v /*const*/ *GLfloat) { 3248 syscall3(glVertex4fv, 1, 3249 uintptr(unsafe.Pointer(v)), 3250 0, 3251 0) 3252 } 3253 3254 func GlVertex4i(x GLint, y GLint, z GLint, w GLint) { 3255 syscall6(glVertex4i, 4, 3256 uintptr(x), 3257 uintptr(y), 3258 uintptr(z), 3259 uintptr(w), 3260 0, 3261 0) 3262 } 3263 3264 func GlVertex4iv(v /*const*/ *GLint) { 3265 syscall3(glVertex4iv, 1, 3266 uintptr(unsafe.Pointer(v)), 3267 0, 3268 0) 3269 } 3270 3271 func GlVertex4s(x GLshort, y GLshort, z GLshort, w GLshort) { 3272 syscall6(glVertex4s, 4, 3273 uintptr(x), 3274 uintptr(y), 3275 uintptr(z), 3276 uintptr(w), 3277 0, 3278 0) 3279 } 3280 3281 func GlVertex4sv(v /*const*/ *GLshort) { 3282 syscall3(glVertex4sv, 1, 3283 uintptr(unsafe.Pointer(v)), 3284 0, 3285 0) 3286 } 3287 3288 func GlVertexPointer(size GLint, aType GLenum, stride GLsizei, pointer /*const*/ uintptr) { 3289 syscall6(glVertexPointer, 4, 3290 uintptr(size), 3291 uintptr(aType), 3292 uintptr(stride), 3293 pointer, 3294 0, 3295 0) 3296 } 3297 3298 func GlViewport(x GLint, y GLint, width GLsizei, height GLsizei) { 3299 syscall6(glViewport, 4, 3300 uintptr(x), 3301 uintptr(y), 3302 uintptr(width), 3303 uintptr(height), 3304 0, 3305 0) 3306 } 3307 3308 func WglCopyContext(unnamed0 HGLRC, unnamed1 HGLRC, unnamed2 UINT) bool { 3309 ret1 := syscall3(wglCopyContext, 3, 3310 uintptr(unnamed0), 3311 uintptr(unnamed1), 3312 uintptr(unnamed2)) 3313 return ret1 != 0 3314 } 3315 3316 func WglCreateContext(unnamed0 HDC) HGLRC { 3317 ret1 := syscall3(wglCreateContext, 1, 3318 uintptr(unnamed0), 3319 0, 3320 0) 3321 return HGLRC(ret1) 3322 } 3323 3324 func WglCreateLayerContext(unnamed0 HDC, unnamed1 int32) HGLRC { 3325 ret1 := syscall3(wglCreateLayerContext, 2, 3326 uintptr(unnamed0), 3327 uintptr(unnamed1), 3328 0) 3329 return HGLRC(ret1) 3330 } 3331 3332 func WglDeleteContext(unnamed0 HGLRC) bool { 3333 ret1 := syscall3(wglDeleteContext, 1, 3334 uintptr(unnamed0), 3335 0, 3336 0) 3337 return ret1 != 0 3338 } 3339 3340 func WglDescribeLayerPlane(unnamed0 HDC, unnamed1 int32, unnamed2 int32, unnamed3 UINT, unnamed4 *LAYERPLANEDESCRIPTOR) bool { 3341 ret1 := syscall6(wglDescribeLayerPlane, 5, 3342 uintptr(unnamed0), 3343 uintptr(unnamed1), 3344 uintptr(unnamed2), 3345 uintptr(unnamed3), 3346 uintptr(unsafe.Pointer(unnamed4)), 3347 0) 3348 return ret1 != 0 3349 } 3350 3351 func WglGetCurrentContext() HGLRC { 3352 ret1 := syscall3(wglGetCurrentContext, 0, 3353 0, 3354 0, 3355 0) 3356 return HGLRC(ret1) 3357 } 3358 3359 func WglGetCurrentDC() HDC { 3360 ret1 := syscall3(wglGetCurrentDC, 0, 3361 0, 3362 0, 3363 0) 3364 return HDC(ret1) 3365 } 3366 3367 func WglGetLayerPaletteEntries(unnamed0 HDC, unnamed1 int32, unnamed2 int32, unnamed3 int32, unnamed4 *COLORREF) int32 { 3368 ret1 := syscall6(wglGetLayerPaletteEntries, 5, 3369 uintptr(unnamed0), 3370 uintptr(unnamed1), 3371 uintptr(unnamed2), 3372 uintptr(unnamed3), 3373 uintptr(unsafe.Pointer(unnamed4)), 3374 0) 3375 return int32(ret1) 3376 } 3377 3378 func WglGetProcAddress(unnamed0 /*const*/ LPCSTR) PROC { 3379 ret1 := syscall3(wglGetProcAddress, 1, 3380 uintptr(unsafe.Pointer(unnamed0)), 3381 0, 3382 0) 3383 return PROC(ret1) 3384 } 3385 3386 func WglMakeCurrent(unnamed0 HDC, unnamed1 HGLRC) bool { 3387 ret1 := syscall3(wglMakeCurrent, 2, 3388 uintptr(unnamed0), 3389 uintptr(unnamed1), 3390 0) 3391 return ret1 != 0 3392 } 3393 3394 func WglRealizeLayerPalette(unnamed0 HDC, unnamed1 int32, unnamed2 bool) bool { 3395 ret1 := syscall3(wglRealizeLayerPalette, 3, 3396 uintptr(unnamed0), 3397 uintptr(unnamed1), 3398 getUintptrFromBool(unnamed2)) 3399 return ret1 != 0 3400 } 3401 3402 func WglSetLayerPaletteEntries(unnamed0 HDC, unnamed1 int32, unnamed2 int32, unnamed3 int32, unnamed4 /*const*/ *COLORREF) int32 { 3403 ret1 := syscall6(wglSetLayerPaletteEntries, 5, 3404 uintptr(unnamed0), 3405 uintptr(unnamed1), 3406 uintptr(unnamed2), 3407 uintptr(unnamed3), 3408 uintptr(unsafe.Pointer(unnamed4)), 3409 0) 3410 return int32(ret1) 3411 } 3412 3413 func WglShareLists(unnamed0 HGLRC, unnamed1 HGLRC) bool { 3414 ret1 := syscall3(wglShareLists, 2, 3415 uintptr(unnamed0), 3416 uintptr(unnamed1), 3417 0) 3418 return ret1 != 0 3419 } 3420 3421 func WglSwapLayerBuffers(unnamed0 HDC, unnamed1 UINT) bool { 3422 ret1 := syscall3(wglSwapLayerBuffers, 2, 3423 uintptr(unnamed0), 3424 uintptr(unnamed1), 3425 0) 3426 return ret1 != 0 3427 } 3428 3429 func WglSwapMultipleBuffers(unnamed0 UINT, unnamed1 /*const*/ *WGLSWAP) DWORD { 3430 ret1 := syscall3(wglSwapMultipleBuffers, 2, 3431 uintptr(unnamed0), 3432 uintptr(unsafe.Pointer(unnamed1)), 3433 0) 3434 return DWORD(ret1) 3435 } 3436 3437 func WglUseFontBitmaps(unnamed0 HDC, unnamed1 DWORD, unnamed2 DWORD, unnamed3 DWORD) bool { 3438 ret1 := syscall6(wglUseFontBitmaps, 4, 3439 uintptr(unnamed0), 3440 uintptr(unnamed1), 3441 uintptr(unnamed2), 3442 uintptr(unnamed3), 3443 0, 3444 0) 3445 return ret1 != 0 3446 } 3447 3448 func WglUseFontOutlines(unnamed0 HDC, unnamed1 DWORD, unnamed2 DWORD, unnamed3 DWORD, unnamed4 FLOAT, unnamed5 FLOAT, unnamed6 int32, unnamed7 *GLYPHMETRICSFLOAT) bool { 3449 ret1 := syscall9(wglUseFontOutlines, 8, 3450 uintptr(unnamed0), 3451 uintptr(unnamed1), 3452 uintptr(unnamed2), 3453 uintptr(unnamed3), 3454 uintptr(unnamed4), 3455 uintptr(unnamed5), 3456 uintptr(unnamed6), 3457 uintptr(unsafe.Pointer(unnamed7)), 3458 0) 3459 return ret1 != 0 3460 } 3461 3462 func GlDebugEntry(unknown1 GLint, unknown2 GLint) GLint { 3463 ret1 := syscall3(glDebugEntry, 2, 3464 uintptr(unknown1), 3465 uintptr(unknown2), 3466 0) 3467 return GLint(ret1) 3468 } 3469 3470 func WglChoosePixelFormat(hdc HDC, ppfd /*const*/ *PIXELFORMATDESCRIPTOR) INT { 3471 ret1 := syscall3(wglChoosePixelFormat, 2, 3472 uintptr(hdc), 3473 uintptr(unsafe.Pointer(ppfd)), 3474 0) 3475 return INT(ret1) 3476 } 3477 3478 func WglDescribePixelFormat(hdc HDC, format INT, size UINT, descr *PIXELFORMATDESCRIPTOR) INT { 3479 ret1 := syscall6(wglDescribePixelFormat, 4, 3480 uintptr(hdc), 3481 uintptr(format), 3482 uintptr(size), 3483 uintptr(unsafe.Pointer(descr)), 3484 0, 3485 0) 3486 return INT(ret1) 3487 } 3488 3489 func WglGetPixelFormat(hdc HDC) INT { 3490 ret1 := syscall3(wglGetPixelFormat, 1, 3491 uintptr(hdc), 3492 0, 3493 0) 3494 return INT(ret1) 3495 } 3496 3497 func WglSetPixelFormat(hdc HDC, format INT, descr /*const*/ *PIXELFORMATDESCRIPTOR) bool { 3498 ret1 := syscall3(wglSetPixelFormat, 3, 3499 uintptr(hdc), 3500 uintptr(format), 3501 uintptr(unsafe.Pointer(descr))) 3502 return ret1 != 0 3503 }